Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
YTSearch: Order results by view_count? Nothing for Pagination? #25560
Comments
|
Use Youtube search URL. |
Sorry maybe I'm stupid but I didn't understand your answer. |
|
OK, understood now. And it works fine!!! Thanks!!! |
Not an issue, just a couple of questions:
Q1:
Using YoutubeDL ytsearch (in python), is there a way to tell
ytsearchto 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
ytsearchI 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) pageytsearchuses, 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