Skip to content

How do i get the thumbnail without black/empty section up and bottom #270

Answered by felipeucelli
ExyXyz asked this question in Q&A
Discussion options

You must be logged in to vote

pytubefix just returns the url that YouTube provides.

Some clients, maybe for compatibility reasons, have this border

You can try changing the client to MWEB or any other WEB based client.

url = 'URL'

yt = YouTube(url, 'MWEB')

print(yt.thumbnail_url)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ExyXyz
Comment options

Answer selected by ExyXyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants