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: [
"Dependencies"
self xmlParserHTML: spec.
self rssTools: spec.
"self rssTools: spec."
"Packages"
spec
package: 'Datanalitica'
with: [ spec requires: #('XMLParserHTML' 'RSSTools') ]
with: [ spec requires: #('XMLParserHTML' "'RSSTools'") ]
]

View File

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