Creating tweet testing, and modifyng nitter user asdictonary.
This commit is contained in:
parent
3ff8dfc86a
commit
a38124638d
@ -1,7 +1,7 @@
|
||||
accessing
|
||||
asDictionary
|
||||
|
||||
^ { 'profile-card-avatar' -> self profileImageFile values first fullName.
|
||||
^ { 'profile-card-avatar' -> self profileImageFile fullName.
|
||||
'profile-card-fullname' -> self name .
|
||||
'profile-card-username' -> self userName .
|
||||
'profile-bio' -> self profileBio } asDictionary
|
@ -3,7 +3,9 @@ collectRawTweetsUpToPage: anInteger
|
||||
|
||||
| pagesDict response customQuery |
|
||||
pagesDict := self getPagesContentsUpto: anInteger.
|
||||
response := TweetsCollection new.
|
||||
response := TweetsCollection new
|
||||
messages: OrderedCollection new;
|
||||
yourself.
|
||||
customQuery := Dictionary new
|
||||
at: 'parameters' put: pagesDict keys;
|
||||
at: 'date' put: DateAndTime now;
|
||||
|
@ -2,6 +2,6 @@ accessing
|
||||
profileImageFile
|
||||
|
||||
| file |
|
||||
file := (self folder / self userName, 'jpg').
|
||||
file := (self folder / 'profile-image', 'jpg').
|
||||
file exists ifTrue: [ ^ file ].
|
||||
^ self downloadProfileImage
|
6
Socialmetrica.package/Tweet.class/instance/isInDB.st
Normal file
6
Socialmetrica.package/Tweet.class/instance/isInDB.st
Normal file
@ -0,0 +1,6 @@
|
||||
accessing
|
||||
isInDB
|
||||
|
||||
(Tweet storedInstances select: [ :each | each id = self id ])
|
||||
ifEmpty: [ ^ false ]
|
||||
ifNotEmpty: [ ^ true ].
|
Loading…
Reference in New Issue
Block a user