• DeathByBigSad@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      3 days ago

      Seal:

      This is perfect.

      But like 3 videos into the playlist, Google decided to be a dipshit and 403 blocked me lmao 🙃

      I guess I’ll keep having to hop VPN servers lol

      (Still open to answers if there’s a better option)

  • TropicalDingdong@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    3 days ago

    So… no… not quite. Or at least I don’t know of one to recommend you.

    HOWEVER, with a very small amount of code:

    # pip install yt-dl
    
    import yt_dlp
    
    channel_url = "https://www.youtube.com/@hssharma100"
    
    opts = {
        "quiet": False,
        "extract_flat": True,   # only list videos, don't download
        "skip_download": True,
    }
    
    with yt_dlp.YoutubeDL(opts) as ydl:
        info = ydl.extract_info(channel_url, download=False)
        if "entries" in info:
            for entry in info["entries"]:
                print(entry.get("title"), entry.get("url"))
    

    You can see that this user has litterally thousands, maybe 10s of thousands of short videos.

    Then you can use this:

    import yt_dlp
    
    channel_url = "https://www.youtube.com/@hssharma100"
    
    opts = {
        "outtmpl": "%(uploader)s/%(title)s.%(ext)s",  # saves videos in a channel folder
        "format": "bestvideo+bestaudio/best",        # highest quality
        "merge_output_format": "mp4",                # merged into mp4
    }
    
    with yt_dlp.YoutubeDL(opts) as ydl:
        ydl.download([channel_url])
    

    To download all of what amounts to about… thousands… of videos of Mr. Hari Sharma… just kind-of going through their day? I mean who am I to criticize, he’s got 500k subscribers and 300 million views… mostly of him and his wife eating at best westerns.

    There is also “Video DownloadHelper” for fire fox if you just want to grab a video for whatever site you are on.

  • frongt@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    If no one recommends an app, I know there are website that will do it for you, or you might be able to get yt-dlp in a terminal.