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

7 lines
192 B
Smalltalk
Raw Permalink Normal View History

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