diff --git a/Socialmetrica.package/NitterUser.class/instance/getPagesContentsUpto..st b/Socialmetrica.package/NitterUser.class/instance/getPagesContentsUpto..st index e1ae7ce..8ddf83a 100644 --- a/Socialmetrica.package/NitterUser.class/instance/getPagesContentsUpto..st +++ b/Socialmetrica.package/NitterUser.class/instance/getPagesContentsUpto..st @@ -8,11 +8,11 @@ getPagesContentsUpto: anInteger | response nextPageLink previousPageLink | response := OrderedDictionary new. - response at: self userNameLink put: self documentTree. - previousPageLink := self userNameLink. + response at: (self userNameLink, '/with_replies') put: self documentTree. + previousPageLink := (self userNameLink, '/with_replies'). anInteger - 1 timesRepeat: [ | pageCursor | pageCursor := self pageCursorFor:previousPageLink. - nextPageLink := self userNameLink, pageCursor keys first. + nextPageLink := self userNameLink, '/with_replies', pageCursor keys first. response at: nextPageLink put: pageCursor values first. previousPageLink := nextPageLink ]. diff --git a/Socialmetrica.package/Tweet.class/instance/metricsFromNitterHtml..st b/Socialmetrica.package/Tweet.class/instance/metricsFromNitterHtml..st index 242c085..144a6d3 100644 --- a/Socialmetrica.package/Tweet.class/instance/metricsFromNitterHtml..st +++ b/Socialmetrica.package/Tweet.class/instance/metricsFromNitterHtml..st @@ -21,4 +21,6 @@ metricsFromNitterHtml: xmlItem stringValue trimmed copyReplaceAll: ',' with: ''). self metadata at: 'pinned' - put: (xmlItem xpath: '//div[@class="pinned"]') stringValue trimmed = 'Pinned Tweet' \ No newline at end of file + put: (xmlItem xpath: '//div[@class="pinned"]') stringValue trimmed = 'Pinned Tweet'; + at: 'replie to' + put: (xmlItem xpath: '//div[@class="tweet-body"]//div[@class="replying-to"]') stringValue trimmed. \ No newline at end of file