deleted by creator
- 0 Posts
- 132 Comments
Gutless2615@ttrpg.networkto Technology@lemmy.world•People say they prefer stories written by humans over AI-generated works, yet new study suggests that’s not quite trueEnglish1·4 months agoThe freakanomics effect on a generation of academics
Gutless2615@ttrpg.networkto Privacy Guides@lemmy.one•How to protect against someone forcefully unlocking my phone and password manager with biometrics?English12·4 months agoDisable biometrics.
Gutless2615@ttrpg.networkto Linux@lemmy.ml•Tailscale has messed up my internet connectionEnglish238·4 months agoCorrection: you messed up your internet connection
Gutless2615@ttrpg.networkto Linux@lemmy.ml•Which distro would you install on a celeron 2gb ram laptop for a lay person to use?English7·6 months agoAs another said on the thread — it’s not really Linux that is the issue here as much as the internet. Browsers are just memory hogs now and you’re not going to get an enjoyable experience on 2gb of ram imo, if the goal is to have a functional laptop. OTOH, it would be a great little project server to play around with things like pihole or your Arrs🏴☠️ or other self hosting goodness.
Gutless2615@ttrpg.networkto Selfhosted@lemmy.world•FUTO just made a 14hrs long video introduction to Selfhosting! (plus a written version) 💾English13·7 months agoQuel suprise
Gutless2615@ttrpg.networkto Technology@lemmy.world•2024 Was the Year the Bottom Fell Out of the Games IndustryEnglish51·7 months agoJesus man that is brutal sorry to hear you’re going through that.
Gutless2615@ttrpg.networkto Technology@lemmy.world•Pluralistic: Antiusurpation and the road to disenshittification (07 Nov 2024)English4·9 months agoCory doesn’t miss
Gutless2615@ttrpg.networkto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•We lost another real one.....English3·9 months agodeleted by creator
Gutless2615@ttrpg.networkto Linux@lemmy.ml•Ubuntu Linux 24.10 Is Finally AvailableEnglish1·9 months agoEven still, I’m back on Ubuntu LTS for my daily driver for stability sake but I do so miss yay.
Gutless2615@ttrpg.networkto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•What to you was your biggest loss of pirated content?English4·9 months agoNapster
Gutless2615@ttrpg.networkto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•In case anyone hasn't seen the hilarious scare screen on one of the seized ZLibrary domains. lolEnglish99·10 months agoNot a boat! Not a family vacation! Gasp! An… RV!?!?? SOMEONE THINK OF THE RIGHTSHOLDERS!
Gutless2615@ttrpg.networkto Technology@lemmy.world•Men Harassed A Woman In A Driverless Waymo, Trapping Her In TrafficEnglish7·10 months ago404 don’t miss. Best tech journoing in the biz imho
Gutless2615@ttrpg.networkto Technology@lemmy.world•Marques Brownlee says ‘I hear you’ after fans criticize his new wallpaper appEnglish21·10 months agoTech bro knob slobber.
Gutless2615@ttrpg.networkto Technology@lemmy.world•Youtube has fully blocked InvidiousEnglish1·10 months agoYeah this is more elegant and closer to what I’d actually want to implement. I was more just showing what could be done in literally thirty seconds on the can with ChatGPT.
Gutless2615@ttrpg.networkto Technology@lemmy.world•Youtube has fully blocked InvidiousEnglish4·10 months ago“Give me a Python script using yt-dlp that I can run on a cronjob that will download the videos from any of my subscribed channels since the last time the script was run”
You can use the following Python script to download videos from your subscribed channels since the last run. This script uses
yt-dlp
and stores the last download timestamp to track new videos.First, ensure you have
yt-dlp
installed:pip install yt-dlp
Then, create a script called
download_videos.py
:import os import json import subprocess from datetime import datetime # Configuration last_run_file = 'last_run.json' download_directory = 'downloads' # Ensure the download directory exists os.makedirs(download_directory, exist_ok=True) # Load the last run time if os.path.exists(last_run_file): with open(last_run_file, 'r') as f: last_run = json.load(f)['last_run'] else: last_run = datetime.now().isoformat() # Update the last run time to now current_run = datetime.now().isoformat() # Command to get videos from subscribed channels since the last run command = [ 'yt-dlp', '--download-archive', 'archive.txt', '--output', f'{download_directory}/%(title)s.%(ext)s', '--date-after', last_run, '--no-post-overwrites', '--merge-output-format', 'mp4', 'https://www.youtube.com/channel/CHANNEL_ID', # Replace with your channel URL ] # Run the command subprocess.run(command) # Save the current run time with open(last_run_file, 'w') as f: json.dump({'last_run': current_run}, f) print("Download complete. Next run will check for videos since:", current_run)
Setting Up the Cron Job
-
Make the script executable:
chmod +x download_videos.py
-
Open your crontab:
crontab -e
-
Add a line to run the script at your desired interval (e.g., daily at 2 AM):
0 2 * * * /path/to/python /path/to/download_videos.py
Notes
- Replace
CHANNEL_ID
in the script with your actual channel IDs or use a playlist URL if preferred. - The
archive.txt
file keeps track of already downloaded videos to avoid duplicates. - Adjust the paths to Python and your script as needed.
-
Gutless2615@ttrpg.networkto Technology@lemmy.world•Youtube has fully blocked InvidiousEnglish2·10 months agoWell you know what they say “Great minds think quicker than mine and probably have already had that thought.”
Gutless2615@ttrpg.networkto Technology@lemmy.world•Youtube has fully blocked InvidiousEnglish5·10 months agoDonate to the EFF for fighting that fight in court already.
Sorry so this is a prowlarr-like?