mlschmitt / twitter-likes-exporter

Hacky Python scripts for downloading your Twitter likes & converting to HTML
49 stars 14 forks source link

error in download_tweets.py #7

Open Schnirivadze opened 2 months ago

Schnirivadze commented 2 months ago

Error:

Starting retrieval of likes for Twitter user 1371351228509196295...
Fetching likes page: 1...
Fetching likes page: 2...
Traceback (most recent call last):
  File "./twitter-likes-exporter-main/download_tweets.py", line 117, in <module>
    downloader.retrieve_all_likes()
  File "./twitter-likes-exporter-main/download_tweets.py", line 30, in retrieve_all_likes
    tweet_parser = TweetParser(raw_tweet)
                   ^^^^^^^^^^^^^^^^^^^^^^
  File "./twitter-likes-exporter-main/tweet_parser.py", line 11, in __init__
    self.key_data = raw_tweet_json["content"]["itemContent"]["tweet_results"]["result"]
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'result'

config.json is filled with needed data

jonasfrede commented 6 days ago

This is the same error as discussed in #3, a possible fix and additional validations are described there. Maybe these will be merged into the main repository soon.