Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit of 30 Records #18

Open
NYBOYATL opened this issue Oct 8, 2018 · 4 comments
Open

Limit of 30 Records #18

NYBOYATL opened this issue Oct 8, 2018 · 4 comments

Comments

@NYBOYATL
Copy link

@NYBOYATL NYBOYATL commented Oct 8, 2018

The following only pulls back at most 30 records no matter what criteria I use. Any ideas why? Also anybody have updated list of provider names? Thanks

from justwatch import JustWatch
US_Data = JustWatch(country='US')
US_Movie_Data = US_Data.search_for_item(providers=['nfx'],content_types=['movie'])
print(len(US_Movie_Data['items']))
#print(US_Movie_Data['items'])

with open('your_file.txt', 'w') as f:
for q in US_Movie_Data['items']:
f.write(q['title'])
f.write("\n")
print(q['title'])

@draogn

This comment has been minimized.

Copy link
Contributor

@draogn draogn commented Oct 9, 2018

If you have a look at #5 there's details on how to set a page size and loop through all the pages.
You can get the provider details from this

just_watch = JustWatch(country='US')
provider_details = just_watch.get_providers()

Which gives you back for netflix

[{'id': 8,
  'profile_id': 76,
  'technical_name': 'netflix',
  'short_name': 'nfx',
  'clear_name': 'Netflix',
  'has_global_account': False,
  'can_create_title': False,
  'data': {'public_info': False},
  'priority': 10,
  'display_priority': 1,
  'domains': [],
  'monetization_types': ['flatrate'],
  'icon_url': '/icon/430997/{profile}',
  'slug': 'netflix'}]
@NYBOYATL

This comment has been minimized.

Copy link
Author

@NYBOYATL NYBOYATL commented Oct 10, 2018

@zpymyyn

This comment has been minimized.

Copy link

@zpymyyn zpymyyn commented Dec 20, 2018

Hi, I can't retrieve more than 1000 items, e.g.,
search_for_item for all movie from Netflix, no matter how I set "page" and "page_size", the result contains 1000 as a maximum.
Do you kindly know the reason?
Thanks.

@draogn

This comment has been minimized.

Copy link
Contributor

@draogn draogn commented Dec 31, 2018

Just seems to be an api limit. The website retrieves data with a pagesize of 10 and gets 150 pages back

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.