begin transition to original tweety code
This commit is contained in:
+2
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user