Populating the NitterUser contents and improving data extraction.
This commit is contained in:
parent
f6b14c086d
commit
e7973abbac
3
Datanalitica.package/NitterUser.class/instance/id.st
Normal file
3
Datanalitica.package/NitterUser.class/instance/id.st
Normal file
@ -0,0 +1,3 @@
|
||||
accessing
|
||||
id
|
||||
^ id ifNil: [id := self profileImageUrl segments third]
|
@ -1,3 +1,4 @@
|
||||
accessing
|
||||
profileImageUrl
|
||||
^ profileImageUrl ifNil: [ (self rssFeed xmlDocument xpath: '//image/url') stringValue copyReplaceAll: '%2F' with: '/' ]
|
||||
^ profileImageUrl ifNil: [
|
||||
profileImageUrl := ((self rssFeed xmlDocument xpath: '//image/url') stringValue copyReplaceAll: '%2F' with: '/') asUrl ]
|
@ -0,0 +1,11 @@
|
||||
accessing
|
||||
retrieveContents
|
||||
self userName ifNil: [^ self].
|
||||
^ self
|
||||
id;
|
||||
name;
|
||||
description;
|
||||
createdAt;
|
||||
url;
|
||||
profileImageUrl;
|
||||
yourself.
|
Loading…
Reference in New Issue
Block a user