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

not get only shorts of a channel #65

Open
vipul156 opened this issue Sep 12, 2024 · 3 comments
Open

not get only shorts of a channel #65

vipul156 opened this issue Sep 12, 2024 · 3 comments

Comments

@vipul156
Copy link

import scrapetube

videos = scrapetube.get_channel(channel_id="UCnLEX7PhefQFqJEvNNyeZqw",content_type='shorts',sort_by="newest")

for video in videos:
print(video)

@NannoSilver
Copy link
Contributor

Scrapetube is failing because YouTube updated the JSON tree for shorts

@psivash
Copy link

psivash commented Sep 14, 2024

This should fix it

@psivash
Copy link

psivash commented Sep 14, 2024

@vipul156 Before this PR is merged you can also achieve the same result with this hack

import scrapetube
scrapetube.scrapetube.type_property_map['shorts'] = 'reelWatchEndpoint'

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

No branches or pull requests

3 participants