Socialmetrica/Socialmetrica.package/Tweet.class/instance/updateFromWeb.st

7 lines
235 B
Smalltalk

accessing
updateFromWeb
| url webContents |
url := (NitterUser nitterProvider, self user userName, '/status/', self id) asUrl.
webContents := XMLHTMLParser parse: url retrieveContents.
^ Tweet new fromNitterHtmlItem: webContents.