Skip to content

Commit 6822007

Browse files
committed
Increase delay between requests
1 parent e095589 commit 6822007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imdb_backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def fetch_lists_info(userid: str, cookies: dict) -> Generator[Dict, None, None]:
9595

9696
def export(mlist: MList, cookies: dict) -> MList:
9797
"""All requests are throttled just in case."""
98-
time.sleep(0.2)
98+
time.sleep(0.5)
9999
print('Downloading:', mlist['title'].replace('\n', ' '))
100100
r = requests.get(f'http://www.imdb.com{mlist["url"]}export', cookies=cookies)
101101
r.raise_for_status()

0 commit comments

Comments
 (0)