Tweets scraping: updating from web until the most recently stored.
This commit is contained in:
parent
7717f00185
commit
bc6a4fb9eb
@ -2,6 +2,7 @@ accessing
|
|||||||
updatedTweets
|
updatedTweets
|
||||||
| currentTweetsPage response nextPageCursor |
|
| currentTweetsPage response nextPageCursor |
|
||||||
|
|
||||||
|
response := TweetsCollection new.
|
||||||
currentTweetsPage := self collectRawTweetsFrom: self userNameLinkWithReplies upToPage: 2.
|
currentTweetsPage := self collectRawTweetsFrom: self userNameLinkWithReplies upToPage: 2.
|
||||||
[ (currentTweetsPage collect: [ :tweet | tweet id ]) includes: self newestTweet id ] whileFalse: [
|
[ (currentTweetsPage collect: [ :tweet | tweet id ]) includes: self newestTweet id ] whileFalse: [
|
||||||
response addAll: currentTweetsPage.
|
response addAll: currentTweetsPage.
|
||||||
|
Loading…
Reference in New Issue
Block a user