From bc6a4fb9eb13acf107b34cc1bdccae0de7dacfbd Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Sun, 15 May 2022 16:32:06 -0500 Subject: [PATCH] Tweets scraping: updating from web until the most recently stored. --- Socialmetrica.package/NitterUser.class/instance/updatedTweets.st | 1 + 1 file changed, 1 insertion(+) diff --git a/Socialmetrica.package/NitterUser.class/instance/updatedTweets.st b/Socialmetrica.package/NitterUser.class/instance/updatedTweets.st index 0c6488e..baac1bd 100644 --- a/Socialmetrica.package/NitterUser.class/instance/updatedTweets.st +++ b/Socialmetrica.package/NitterUser.class/instance/updatedTweets.st @@ -2,6 +2,7 @@ accessing updatedTweets | currentTweetsPage response nextPageCursor | + response := TweetsCollection new. currentTweetsPage := self collectRawTweetsFrom: self userNameLinkWithReplies upToPage: 2. [ (currentTweetsPage collect: [ :tweet | tweet id ]) includes: self newestTweet id ] whileFalse: [ response addAll: currentTweetsPage.