Debugging user id.

This commit is contained in:
Diego Ruidajo 2022-01-27 19:43:09 -05:00
parent 88c0969d0a
commit 938bd300ff
3 changed files with 8 additions and 5 deletions

View File

@ -6,9 +6,9 @@ baseline: spec
do: [ do: [
"Dependencies" "Dependencies"
self xmlParserHTML: spec. self xmlParserHTML: spec.
self rssTools: spec. "self rssTools: spec."
"Packages" "Packages"
spec spec
package: 'Datanalitica' package: 'Datanalitica'
with: [ spec requires: #('XMLParserHTML' 'RSSTools') ] with: [ spec requires: #('XMLParserHTML' "'RSSTools'") ]
] ]

View File

@ -1,3 +1,3 @@
accessing accessing
id id
^ id ifNil: [id := self profileImageUrl segments third] ^ id ifNil: [id := (self profileImageUrl segments select: [ :each | each asInteger class = LargePositiveInteger]) first.]

View File

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