Socialmetrica/Socialmetrica.package/NitterUser.class/instance/getMessages.st

10 lines
263 B
Smalltalk
Raw Normal View History

accessing
getMessages
| lastTweetsRaw lastTweets |
lastTweetsRaw := self rssFeed xmlDocument xpath: '//item'.
lastTweets := TweetsCollection new.
lastTweetsRaw do: [ :rssTweet |
lastTweets add: ((Tweet new fromNitterRssItem: rssTweet ))
].
^ lastTweets