add support for downloading youtube community posts #382

Open
opened 2025-11-09 09:47:59 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @kenziewebm on GitHub (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

Originally created by @kenziewebm on GitHub (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 ```bash # 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](https://github.com/user-attachments/assets/9ab94f13-2f1c-4145-9da3-4c259140a44d)
GiteaMirror added the feature request label 2025-11-09 09:47:59 -06:00
Sign in to join this conversation.