The Honest Guide created the series (not just) about Prague. What to expect, how to avoid scams, and lovely recommendations for visitors and locals.

  • ChaoticNeutralCzech@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    Maybe we could set up a bot to post a link to each video as it comes out… A Python script running on one of our computers could do the trick.

    1. Fetch channel’s video list using something like yt-dlp every hour
    2. Check videos newer than [script start date] against list of already processed video IDs in a file
    3. Display a prompt: new video found: <title>; post video to !prague@feddit.org? [Y/n/watch]
    4. Post using the pythorhead library from a dedicated bot account
    5. Add video ID to file