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

add support for downloading youtube community posts #672

Open
kenziewebm opened this issue Aug 7, 2024 · 0 comments
Open

add support for downloading youtube community posts #672

kenziewebm opened this issue Aug 7, 2024 · 0 comments
Labels
feature request New feature or request

Comments

@kenziewebm
Copy link

kenziewebm commented Aug 7, 2024

describe the feature you'd like to see

add support for downloading youtube community posts (afaik cobalt doesnt support this yet. tried pasting the url below and got an error)

additional context

i managed to create a bash oneliner to successfully download a youtube community post image, so i think this will help somewhat :3

# this downloads the best resolution image, remove everything after "grep trackingParams" to list available resolutions in a very shitty way
# example url i used for testing
# export URL='https://www.youtube.com/post/UgkxpzFlSEobNVmQT14KeROKeOIPOXuhX8F9'
curl $URL | grep ggpht | sed -e 's/:"/\n/g' | grep trackingParams | head -1 | sed 's/",.*$//g' | xargs -I{} curl -s {} | convert - out.gif

its not the best, but it works
tested only on posts with animated content, not static images

FYI - the animated posts use some custom animated webp thing? ffmpeg doesnt support it and refuses to convert. imagemagick however does, thats why i use it here.

image

@kenziewebm kenziewebm added the feature request New feature or request label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant