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

11 lines
318 B
Smalltalk
Raw Normal View History

accessing
url
self remoteIsFound
ifFalse: [ ^ url := nil ].
^ url ifNil: [ | temp |
temp := ((self documentTree xpath: '//div[@class="profile-website"]') // 'a' @@ 'href') first.
temp ifNil: [ ^ url := nil ].
temp := temp replaceAll: with: $u.
temp := temp replaceAll: with: $i.
2023-07-27 22:57:54 +00:00
url := temp.
]