JustWatchAPI icon indicating copy to clipboard operation
JustWatchAPI copied to clipboard

Limit of 30 Records

Open NYBOYATL opened this issue 7 years ago • 4 comments

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'])

NYBOYATL avatar Oct 08 '18 23:10 NYBOYATL

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'}]

draogn avatar Oct 09 '18 21:10 draogn

Thank you!

On Oct 9, 2018, at 5:15 PM, draogn <[email protected]mailto:[email protected]> wrote:

If you have a look at #5https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_dawoudt_JustWatchAPI_issues_5&d=DwMFaQ&c=W8uiIUydLnv14aAum3Oieg&r=qL3s0oMKm6a-PD5a34Lhk5zWKSpbD_d0wOrVDq2YRL8&m=gi4ySjdJu93uuQV39_mz0wfIhZt3u8yO5kebcSxOoeE&s=73Y3QDiVh9BckieCsG7sv5XSdnRIUTmGTsxt82q00eI&e= 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'}]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_dawoudt_JustWatchAPI_issues_18-23issuecomment-2D428354976&d=DwMFaQ&c=W8uiIUydLnv14aAum3Oieg&r=qL3s0oMKm6a-PD5a34Lhk5zWKSpbD_d0wOrVDq2YRL8&m=gi4ySjdJu93uuQV39_mz0wfIhZt3u8yO5kebcSxOoeE&s=0orBItbQDUGdrrLwFUtzHztnbWnGgxdk7l10c8lFprI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_Ap79ATFQ1ToBqspLd7APS5t97RoGeSeyks5ujRHVgaJpZM4XN0MD&d=DwMFaQ&c=W8uiIUydLnv14aAum3Oieg&r=qL3s0oMKm6a-PD5a34Lhk5zWKSpbD_d0wOrVDq2YRL8&m=gi4ySjdJu93uuQV39_mz0wfIhZt3u8yO5kebcSxOoeE&s=XdLWi-K6VrgBtBw_9enUjALdeENPg509K0sgIdezv8w&e=.

NYBOYATL avatar Oct 10 '18 01:10 NYBOYATL

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.

pengyuan-zhou avatar Dec 20 '18 15:12 pengyuan-zhou

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

draogn avatar Dec 31 '18 11:12 draogn