2022-04-01 22:22:33 +00:00
|
|
|
accessing
|
|
|
|
getMessages
|
2022-04-02 00:34:30 +00:00
|
|
|
| lastTweetsRaw customQuery lastTweets |
|
2022-04-01 22:22:33 +00:00
|
|
|
lastTweetsRaw := self rssFeed xmlDocument xpath: '//item'.
|
|
|
|
lastTweets := TweetsCollection new.
|
2022-04-02 00:34:30 +00:00
|
|
|
customQuery := Dictionary new
|
2022-04-04 15:42:39 +00:00
|
|
|
at: 'parameters' put: self userNameLink;
|
2022-04-02 00:34:30 +00:00
|
|
|
at: 'date' put: DateAndTime now;
|
|
|
|
yourself.
|
|
|
|
lastTweets query: customQuery.
|
2022-04-04 15:42:39 +00:00
|
|
|
lastTweetsRaw doWithIndex: [ :rssTweet :i | | current previous |
|
|
|
|
current := Tweet new fromNitterRssItem: rssTweet.
|
|
|
|
i < lastTweetsRaw size ifTrue: [
|
|
|
|
previous := Tweet new fromNitterRssItem: (lastTweetsRaw at: i + 1).
|
|
|
|
current timelines
|
|
|
|
at: self userName put: previous id;
|
|
|
|
yourself.
|
|
|
|
].
|
|
|
|
current queries add: customQuery.
|
|
|
|
lastTweets add: current.
|
2022-04-01 22:22:33 +00:00
|
|
|
].
|
2022-04-05 20:30:52 +00:00
|
|
|
self tweets: lastTweets.
|
|
|
|
^ self tweets
|
2022-04-01 22:22:33 +00:00
|
|
|
|