mikf / gallery-dl

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

[Twitter] Replies to deleted tweets return no data #6232

Closed biggestsonicfan closed 1 month ago

biggestsonicfan commented 1 month ago

Example: gallery-dl -j https://x.com/fNChmuSufMt9dPQ/status/1667987489200689152

I'm trying to get the original user that this tweet replied to but was surprised that gallery-dl can't actually touch any of it's info even though it still exists as a stand-alone tweet.

EDIT: Seems like twitter-card-validator can still pull info. I am unsure where it's getting it from:

Screenshot 2024-09-25 175812

mikf commented 1 month ago

For Twitter, you need to enable text-tweets to get gallery-dl to produce data for Tweets without media.

$ gallery-dl -j https://x.com/fNChmuSufMt9dPQ/status/1667987489200689152
[]

$ gallery-dl -j -o text-tweets=1 https://x.com/fNChmuSufMt9dPQ/status/1667987489200689152
[
  [
    2,
    {
      "author": {
        "date": "2017-03-28 11:16:48",
        "description": "FGOとウマ娘、とあるIF等色々楽しんでいます! アーマドコア6、ポケモンも遊んでます、ハチャウマとガンダムブレイカーめっちゃ楽しい!!変なアカウントやスパムからのいいね等に報告、ブロックする場合がございます、ご了承ください",
        ...
biggestsonicfan commented 1 month ago

I swear I had text-tweets set to true in config specially for this test... Now I tried it again, and yes, it's working. Big oopsie on my part. Thank you...