-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
I'm trying to get all the movie list by paging out the results, but the answer provides a maximum of 2000 titles. I am using the search_for_item method setting the providers, page, and page size as parameters. Have you noticed this situation? Here's my code:
`
from justwatch import JustWatch
import json
just_watch = JustWatch(country='IT')
i = 1
while True:
get_providers = just_watch.search_for_item(
providers=[
'nfx',
'prv',
'ntv',
'tvi',
'inf',
'skg',
'rai',
'itu',
'ply',
'msf',
'pls',
'chi',
'wki',
'ytr',
'mbi',
'gdc',
'uci',
'cru'
],
page=i,
page_size=300);
if not get_providers['items']:
break;
else:
print(json.dumps(get_providers['items']), file=open("output-"+str(i)+".json", "a"))
i = i + 1;`
siftnoorsingh and AdriaPadilla
Metadata
Metadata
Assignees
Labels
No labels