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

Option to search by type (channel / playlist / video)? #54

Open
patrickkfkan opened this issue Dec 9, 2020 · 2 comments
Open

Option to search by type (channel / playlist / video)? #54

patrickkfkan opened this issue Dec 9, 2020 · 2 comments
Assignees

Comments

@patrickkfkan
Copy link

Hello,

On the YouTube website, you have the option to filter search results by type (channel, playlist, video...). The URL then gets appended with "sp={some string}" (which does not seem to be predefined) and the results will be limited to the specified type.

With youtube-scrape, is it possible to do the same thing? Currently, it returns a bunch of results that can be channels, playlists or videos. I can filter the results to include only, say, channels after the search is completed. But if I were to obtain 30 channels or playlists matching a keyword, I would need many iterations because channels and playlists appear far less frequently than videos in the general search results (which you can observe by searching for something on the YouTube website).

Thanks for the great work!

-Patrick

@HermanFassett
Copy link
Owner

Hmm if it's part of the URL than that should be fairly easy to implement, I'll see what I can do

@patrickkfkan
Copy link
Author

@HermanFassett , I've submitted a PR on this for your review.

Thanks,
Patrick

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

No branches or pull requests

2 participants