mikf / gallery-dl

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

Follow-up to #4256: Where can I find a comprehensive list of field names? #4510

Open cdn-content opened 1 year ago

cdn-content commented 1 year ago

Thanks to advice from a previous question (Issue #4256), I was able to figure out how to download Twitter bookmarks into chronologically titled folders and filenames by editing the field names in config.json. It was recommended to add {date_bookmarked} to the directory and filename sections. I now have a JSON file that reads as follows, and the folder and filename structure is exactly as I wanted it to be:

config_json.txt

I would now like to do the same thing to download tweets, re-tweets and quote tweets from my own profile (not the Twitter bookmarks section) into the same chronological folder structure, prefixed with the timestamp and username. (I would substitute "profile" for "bookmark" as the name of the directory.)

However, {date_bookmarked} does not append the date of a retweet, which seems intuitive, given the field name itself referring to Twitter bookmarks. I am looking for a comprehensive list of field names so that I can replace {date_bookmarked} with whatever the correct field name is to timestamp tweets from a public-facing profile, whether it is my own or someone else's. Something like {date_tweeted} or just {date} or whatever the proper term(s) might be?

mikf commented 1 year ago

To get a list of all metadata fields provided for a URL, use -K/--list-keywords

gallery-dl -K https://twitter.com/i/web/status/1170041925560258560

Something like {date_tweeted} or just {date} or whatever the proper term(s) might be?

Date/Time information is usually just called {date}.

Hrxn commented 1 year ago

Ping @cdn-content