Socialmetrica/Datanalitica.package/NitterUser.class/instance/url.st

7 lines
192 B
Smalltalk
Raw Normal View History

accessing
url
2022-01-28 00:43:09 +00:00
^ url ifNil: [ | temp |
temp := ((self documentTree xpath: '//div[@class="profile-website"]') // 'a' @@ 'href') first.
temp ifNil: [ ^ url := nil ].
url := temp asUrl.
]