begin transition to original tweety code

This commit is contained in:
muskit
2024-01-26 23:34:32 -08:00
parent 4878716460
commit 3e93b533a7
4 changed files with 176 additions and 107 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ class Scraper:
if tweet.is_reply and tweet.replied_to is None:
# print(f'{tweet.author.username}/{tweet.id} is missing reply-to tweet! Recovering...')
tweet.replied_to = self.get_tweet(
tweet.original_tweet["in_reply_to_status_id_str"]
tweet._original_tweet["in_reply_to_status_id_str"]
)
return tweet
@@ -168,7 +168,7 @@ class Scraper:
for e in cur_page:
if isinstance(e, Tweet):
add_tweet(e)
elif isinstance(e, TweetThread):
elif isinstance(e, SelfThread):
# FIXME: rework when replied_to is fixed (currently populates user_mentions)
# latest tweet in thread = og author's reply
for t in e: