gallery-dl
gallery-dl copied to clipboard
twitter thread support
i dont know twitter have thread until today
https://twitter.com/kingdwildfire/status/1269877674417283073
That would be awesome, currently gallery-dl
only support single tweet at a time. it can't download the whole thread.
Huh? Is this a new Twitter feature?
You can enable the conversations
option to download from all tweets or replies in a thread. If it is disabled (default), it only grabs the single tweet specified in the input URL:
$ gallery-dl -o conversations=1 https://twitter.com/kingdwildfire/status/1269877674417283073
/tmp/twitter/KingDWildfire/1269872575884247040_1.jpg
/tmp/twitter/KingDWildfire/1269873089380261888_1.jpg
/tmp/twitter/KingDWildfire/1269873089380261888_2.jpg
/tmp/twitter/KingDWildfire/1269874070709035010_1.jpg
...
Ah, I was wondering there for a sec. Yeah, support for such conversation threads had been there already.
You can enable the
conversations
option to download from all tweets or replies in a thread. If it is disabled (default), it only grabs the single tweet specified in the input URL:
OH, I see.
Is there a complete manual for gallery-dl somewhere? the --help
didn't include that option
@Pandaa-P That'd be this: https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst
for conversations specifically: https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractortwitterconversations
Some way to download only the replies from the original tweet author? I tried --filter "author['name']==reply_to"
but the result was [twitter][error] FilterError: Evaluating filter expression failed (NameError: name 'reply_to' is not defined)
, probably because the original tweet hasn't a "reply_to" metadata.
@vitormathews
--filter "author['name']==locals().get('reply_to')"