diff --git a/Socialmetrica.package/NitterUser.class/instance/collectRawTweetsForPages..st b/Socialmetrica.package/NitterUser.class/instance/collectRawTweetsForPages..st index 6296c51..7739892 100644 --- a/Socialmetrica.package/NitterUser.class/instance/collectRawTweetsForPages..st +++ b/Socialmetrica.package/NitterUser.class/instance/collectRawTweetsForPages..st @@ -2,7 +2,7 @@ accessing collectRawTweetsForPages: anInteger | pagesDict response | - pagesDict := self getPagesContentsUntil: anInteger. + pagesDict := self getPagesContentsUpto: anInteger. response := TweetsCollection new. response query: pagesDict keys. pagesDict keysAndValuesDo: [ :key :rawTweets | | temp | diff --git a/Socialmetrica.package/NitterUser.class/instance/getPagesContentsUntil..st b/Socialmetrica.package/NitterUser.class/instance/getPagesContentsUpto..st similarity index 66% rename from Socialmetrica.package/NitterUser.class/instance/getPagesContentsUntil..st rename to Socialmetrica.package/NitterUser.class/instance/getPagesContentsUpto..st index 398ee40..e1ae7ce 100644 --- a/Socialmetrica.package/NitterUser.class/instance/getPagesContentsUntil..st +++ b/Socialmetrica.package/NitterUser.class/instance/getPagesContentsUpto..st @@ -1,5 +1,5 @@ accessing -getPagesContentsUntil: anInteger +getPagesContentsUpto: anInteger "I retroactively get all pages contents until a specified page number. TO DO: should this be splitted back to two methods, one getting the page urls and other its content? @@ -10,9 +10,10 @@ getPagesContentsUntil: anInteger response := OrderedDictionary new. response at: self userNameLink put: self documentTree. previousPageLink := self userNameLink. - anInteger - 1 timesRepeat: [ - nextPageLink := self userNameLink, (self pageCursorFor:previousPageLink) keys first. - response at: nextPageLink put: (self pageCursorFor:previousPageLink) values first. + anInteger - 1 timesRepeat: [ | pageCursor | + pageCursor := self pageCursorFor:previousPageLink. + nextPageLink := self userNameLink, pageCursor keys first. + response at: nextPageLink put: pageCursor values first. previousPageLink := nextPageLink ]. ^ response \ No newline at end of file