mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
10.74k stars 883 forks source link

How do you use "--filter" download everything before a certain date? #5815

Open jojo2833432 opened 3 days ago

jojo2833432 commented 3 days ago

Heres my command input: C:\Users\user\Downloads\gallery-dl.exe --sleep 3-10 -u user123 -p pass123 --filter "datetime(2018, 12, 1) <= date < datetime(2020, 10, 13)" https://x.com/example_user Is this how it works? because I got 2 accounts suspended for downloading everything after the date, instead of before the date. Due to gallery-dl quickly redownloading everything I already downloaded.

mikf commented 3 days ago

--filter only discards files that don't match its condition. gallery-dl still has to start at the very beginning and work its way through all Tweets until it gets to 2020.

The only way to actually start (and end) at the specific date for older Tweets is to use an advanced search:

gallery-dl "https://x.com/search?q=from:example_user until:2020-10-13 since:2018-12-01"

You don't need a --filter here. I'd recommend adding --sleep-request 3-10 though.

jojo2833432 commented 2 days ago

Update: The account has been permanently suspended. I've tried everything with the sleep command.