Socialmetrica/Datanalitica.package/NitterUser.class/instance/url.st
2022-01-27 19:43:09 -05:00

7 lines
192 B
Smalltalk

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