[senscritique] Add comments to explain magic code lines
This commit is contained in:
parent
a7e78c1dc9
commit
c097582137
2 changed files with 12 additions and 2 deletions
|
|
@ -39,8 +39,9 @@ class SenscritiqueBrowser(BaseBrowser):
|
|||
'%s://%s/film/(.*?)' % (PROTOCOL, DOMAIN): EventPage,
|
||||
}
|
||||
|
||||
LIMIT = 25
|
||||
LIMIT_NB_PAGES = 10
|
||||
LIMIT = 25 # number of results returned for each ajax call (defined in the website).
|
||||
|
||||
LIMIT_NB_PAGES = 10 # arbitrary limit to avoid infinitive loop that can occurs if total number of films is a multiple of LIMIT (in website it causes an infinite scroll)
|
||||
|
||||
HEADER_AJAX = {"User-Agent": "Mozilla/5.0 (Windows; U; Windows "
|
||||
"NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue