Debugging user id.
This commit is contained in:
parent
88c0969d0a
commit
938bd300ff
@ -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'") ]
|
||||||
]
|
]
|
@ -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.]
|
@ -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.
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user