You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which I tried but always returns results for page 1. In the README documentation you mention to use the key and pageToken arguments. What do they mean and how to use them?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Yeah sorry the index.html needs to be updated.
I wish I could just keep using page but youtube search doesn't use literal pages anymore (it lazy loads infinitely).
To get pages you'll have to call a first query with just q parameter which will give you the first page as well as a key and a nextPageToken. Then to get page 2 you just pass the key and pageToken as parameters and that will return page 2 as well as the nextPageToken for page 3. Let me know if that doesn't make sense, I wish it could be easier.
It could potentially be made to work like it did previously but it would require youtube-scrape to do this in the background and load n - 1 pages before it can get the token for page n.
I am trying to use the API, but I don't understand how to get videos from multiple search pages. The example in index.html says
youtube-scrape/index.html
Line 61 in 677fbcd
which I tried but always returns results for page 1. In the README documentation you mention to use the key and pageToken arguments. What do they mean and how to use them?
Thanks in advance
The text was updated successfully, but these errors were encountered: