Please help me configure gallery-dl to extract twitter content like Twitter Media Downloader extension #4534
|
Hello everyone. I'm a newcomer to gallery-dl. Just recently Twitter Media Downloader have announced that they will discontinued the development of their extensions, which includes the aforementioned downloader. As someone who's been using this extension for a long time, it's a devastating blow to my ability to procure twitter content. Now I come to this tool and seek to understand how to use it, but as a newbie to cli and g-dl, it's a daunting task, and I've yet to been able to figure out how to configure it to replicate the features I need from twitter media downloader for g-dl. Among other things, it can saves the media content as twittername-tweetID and date; along with producing a .csv and .txt of the download, of which I've linked a sample of below this message. It was one of its kind and unfortunately, it is going to be gone for good. I know what I'm asking is a tall order, but I sincerely hope that someone here would lend a hand in these trying times. I'll be really appreciative and grateful to anyone that volunteers their time to aid me in this matter. VicegameXD-721460086800052224(20160417_050743)-1318946930748162048(20201021_230707)-media.log VicegameXD-721460086800052224(20160417_050743)-1318946930748162048(20201021_230707)-media.csv |
Replies: 5 comments 5 replies
|
Use this format in Powershell after installing gallery-dl: gallery-dl "https://twitter.com/NAME/media" -o skip=true --filter "datetime(2023, 9, 11) <= date" Note with the very end of the Twitter Media Downloader Name in 20220830[030102]-img1 (the section inside []s) is not going to match Twitter Media Downloader. config.json{
"extractor":{
"twitter":{
"users": "https://twitter.com/{legacy[screen_name]}",
"cookies": ["firefox"],
"include": "media",
"text-tweets":false,
"quoted":false,
"retweets":false,
"logout":true,
"replies":true,
"pinned":true,
"syndication":"extended",
"filename":"{author[name]}-{tweet_id}-{date:%Y%m%d}-{extension}{num}.{extension}",
"directory":{
"" : ["output", "twitter"]
},
"postprocessors":[
{"name": "metadata", "event": "post", "filename": "{author[name]}-{tweet_id}-{date:%Y%m%d}.json"}
]
}
}
} |
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
|
First, create a config file by running Next, add a "extractor":{
"twitter":{
"filename": "{author[name]}-{author[id]}({author[date]:%Y%m%d_%H%M%S})-{tweet_id}({date:%Y%m%d_%H%M%S}).{extension}"
}
}You'll also need to login, which can be done with username+password or cookies. Creating And as input URL, you should use a plain To update your collection, use |
|
Bumping an old thread This is what my config looks like: { |


First, create a config file by running
gallery-dl --config-createNext, add a
twittersection and define afilenameformat string.You'll also need to login, which can be done with username+password or cookies.
Creating
.logand.csvfiles like you posted should also be possible, but there is no pre-defined way of doing so. You'll have to use ametadatapost processor and make extensive use of its options to get somewhat close to what twMD produced.And as input URL, you should use a plain
https://twitter.com…