gallery-dl icon indicating copy to clipboard operation
gallery-dl copied to clipboard

twitter thread support

Open wankio opened this issue 3 years ago • 7 comments

i dont know twitter have thread until today

https://twitter.com/kingdwildfire/status/1269877674417283073

wankio avatar Dec 07 '21 12:12 wankio

That would be awesome, currently gallery-dl only support single tweet at a time. it can't download the whole thread.

Pandaa-P avatar Dec 09 '21 03:12 Pandaa-P

Huh? Is this a new Twitter feature?

Hrxn avatar Dec 10 '21 16:12 Hrxn

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
...

mikf avatar Dec 10 '21 17:12 mikf

Ah, I was wondering there for a sec. Yeah, support for such conversation threads had been there already.

Hrxn avatar Dec 10 '21 17:12 Hrxn

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 avatar Dec 14 '21 22:12 Pandaa-P

@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

kattjevfel avatar Dec 14 '21 23:12 kattjevfel

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.

KonoVitoDa avatar Jul 18 '22 03:07 KonoVitoDa

@vitormathews --filter "author['name']==locals().get('reply_to')"

mikf avatar Dec 03 '22 18:12 mikf