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

YTSearch: Order results by view_count? Nothing for Pagination? #25560

Closed
radiolondra opened this issue Jun 6, 2020 · 3 comments
Closed

YTSearch: Order results by view_count? Nothing for Pagination? #25560

radiolondra opened this issue Jun 6, 2020 · 3 comments
Labels

Comments

@radiolondra
Copy link

@radiolondra radiolondra commented Jun 6, 2020

Not an issue, just a couple of questions:

Q1:
Using YoutubeDL ytsearch (in python), is there a way to tell ytsearch to give back results ordered by descending view_count (most viewed first)?
Something like you did (in 2013) for "ytsearchdate", or some params to add to the query itself (BTW, I already did some attempts without any success).

Q2:
Using ytsearch I can add the number of results I want to get, something like
.... "default_search": "ytsearch10", .... to get information of the first 10 videos. The 10 videos are got from the first (unique) page ytsearch uses, so that, next time I ask for 10 videos, I'll get the same results.
It should be a great improvement (at least for me) to have the ability to pass the page number (pagination) from where to get the 10 videos (&page=xx using youtube.com queries, still working parameter).

Many thanks.
Rob

@radiolondra radiolondra added the question label Jun 6, 2020
@radiolondra radiolondra changed the title YTSearch: Order results by views_count? Nothing for Pagination? YTSearch: Order results by view_count? Nothing for Pagination? Jun 6, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 6, 2020

Use Youtube search URL.

@dstftw dstftw closed this Jun 6, 2020
@radiolondra
Copy link
Author

@radiolondra radiolondra commented Jun 6, 2020

Use Youtube search URL.

Sorry maybe I'm stupid but I didn't understand your answer.

@radiolondra
Copy link
Author

@radiolondra radiolondra commented Jun 6, 2020

OK, understood now. And it works fine!!! Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.