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

6 lines
232 B
Smalltalk
Raw Normal View History

accessing
name
2022-06-22 21:47:44 +00:00
| documentTree |
documentTree := [ self documentTree ] onErrorDo: [ ^ nil ].
^ name ifNil: [ name := (documentTree xpath: '//div[@class="profile-card-tabs-name"]//a[@class="profile-card-fullname"]') stringValue ]