-
Notifications
You must be signed in to change notification settings - Fork 44
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
Maximum 2000 titles #40
Comments
im having the same issue. is there a way to fix this? |
Same issue. Maximum titles usting search_for_item() are limited to 2000, even using a loop with page=n and page_size=n modifiers. from justwatch import JustWatch
import time
provider = "nfx"
country = "ES"
page_size = 100
page = 1
def extractor(page, provider, country):
just_watch = JustWatch(country=country)
results = just_watch.search_for_item(providers=[provider], page=page, page_size=page_size)
results = json.dumps(results)
data = json.loads(results)
## Here is code to dump response to .json files.. :)
if page < pages:
page = page+1
time.sleep(1)
extractor(page, provider, country)
else:
pass
extractor(page, provider, country) JSON response header: {
"page": 1,
"page_size": 100,
"total_pages": 20,
"total_results": 5031,
"items": [
{ Althought total results are 5031, only 2000 are paginated. By the way... great job and many thanks for working on this. Ideas? |
Still an issue, anyone got a fix yet? |
I think there's no solution for this... This thread is open since 2019. I don't have too many expectations. But it would be nice to know if the limitation is imposed by the platform or the code. If it's the second one, maybe we can work together to find a solution. |
Looks like they may have moved away from that API and to graphql which I have no idea about This is pretty much how the site works now, cant quite get the numbers correct when getting towards the 2,000 mark but it does seem to go higher using the "afterCursor" instead of page.
|
Did you find any documentation or implementation info about this "new" api? Mention that the JustWatch project is financed (I don't know if totally or partially) by public funds from the European Union. It would be interesting to know if there's an open data policy... and clear documentation on how to access the complete catalogue. Thanks! |
Nothing other than how their site interacts with the API. I might have a
look through the frontend source and see if they have any easily readable
query builders for it. I will keep you posted
…On Mon, 23 May 2022, 10:05 pm Adrià Padilla, ***@***.***> wrote:
Did you find any documentation or implementation info about this "new" api?
Mention that the JustWatch project is financed (I don't know if totally or
partially) by public funds from the European Union. It would be interesting
to know if there's an open data policy... and clear documentation on how to
access the complete catalogue.
Thanks!
—
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIZLDTFGV5A5LNVL3KWITHTVLNYA7ANCNFSM4IW2BJRA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Unfortunately even their website has the same limitations |
what a shame. I'm looking for other open databases but I don't find anything interesting. But instead of using bees, couldn't you scrape the data from the front end? |
Their website only displays up to 2000 entries as well when you scroll down
:(
I'd say it's to do with the popular listings we are querying as it's likely
limited to roughly 2k entries
…On Tue, 24 May 2022, 2:11 pm Roberto Di Marco, ***@***.***> wrote:
Unfortunately even their website has the same limitations
what a shame. I'm looking for other open databases but I don't find
anything interesting. But instead of using bees, couldn't you scrape the
data from the front end?
—
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIZLDTGTBNAZ2C5XHWE6T7TVLRJIPANCNFSM4IW2BJRA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
True, what a shame. I can undersand they need to do money with this... so it is normal that it's not as accessible as we would like. There aren't too many alternatives. IMDB has never had an API. It is now integrating with Amazon Prime, and if you want to access its data you have to pay for the service. Web scraping on IMDB has also become very complicated, because they have obfuscated all the code with javaScript. Other alternatives like FilmAffinity have a less extensive catalog... Did you try TheMovieDB? https://www.themoviedb.org/documentation/api?language=en |
You might be onto something Adria, they do have a where to watch which is why I was using JustWatch |
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:
`
The text was updated successfully, but these errors were encountered: