#!/usr/bin/env python3 """ Master downloader for every website in this workspace. Replaces the per-website downloader scripts with one entry point. Given a mix of website URLs, RedGIFs creator usernames, and/or .txt files containing either (one URL or creator per line, blank lines and '#' comments allowed), it: * identifies the target website for every input * downloads / names / places files EXACTLY as each individual script did: /videos//.mp4 (RedGIFs additionally writes /links.txt and appends all_links.txt) Examples: python downloader.py https://en.chezcathy.com/user/7115/whatever \ https://en.luxuretv.com/videos/12345/foo.html \ https://www.thisvid.com/video/9876/ \ some_redgifs_creator another_creator urls.txt python downloader.py --update-all-creators # refresh redgifs creators.txt python downloader.py --list-sites # show supported sites Adding a new site: 1. Add a registry entry in SITES (folder name, domains, handler, defaults). 2. If the site is a standard HTML