Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does it save the video thumbnail as well? Video description? Comments? Channel name? Channel avatar? etc

Currently I use yt-dlp to manually download individual videos that I want to keep. At the moment I only save the video itself. And most of the time I then also paste the URL of the video into archive.is save page and web.archive.org/save so that there is a snapshot of what the video page itself looked like at the time. But this is still incomplete, and relies on those services continuing to exist. Locally saving a snapshot of the page like that, and then also saving the thumbnail and perhaps more of the comments would be nice.



Check this code fragment:

    youtube_details = {
        "youtube_id": vid_id,
        "channel_name": vid["channel"],
        "vid_thumb_url": vid["thumbnail"],
        "title": vid["title"],
        "channel_id": vid["channel_id"],
        "duration": duration_str,
        "published": published,
        "timestamp": int(datetime.now().timestamp()),
        # Pulling enum value out so it is serializable
        "vid_type": vid_type.value,
    }


I’ve been using the ytdl-sub docker container for managing automated download of channels and importing them into Plex https://github.com/jmbannon/ytdl-sub


You should also check out https://archivebox.io/


It saves all the things you mentioned plus the number of views and likes.


You can embed both the thumbnail and the description of a video with ytdl, if you use the appropriate containers


I didn't know this, neat! Going to try this out:

https://www.reddit.com/r/youtubedl/comments/mcvgmr/download_...


Yes to all of those. It even indexes most of those so you can do full text searches if you want.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: