Starting TwitterUser to explore mentions behavior and possible bots.
This commit is contained in:
parent
619379f154
commit
a7d7b66403
@ -0,0 +1,6 @@
|
|||||||
|
accessing
|
||||||
|
messagesAuthors
|
||||||
|
self includes at: 'users' ifAbsent: [ ^ nil ].
|
||||||
|
^ (self includes at: 'users') collect: [:userDict |
|
||||||
|
TwitterUser new fromDictionary: userDict
|
||||||
|
]
|
3
Datanalitica.package/TwitterUser.class/README.md
Normal file
3
Datanalitica.package/TwitterUser.class/README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
I model some fields of a Twitter user model as described in:
|
||||||
|
|
||||||
|
<https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/user>
|
@ -0,0 +1,5 @@
|
|||||||
|
accessing
|
||||||
|
fromDictionary: userDict
|
||||||
|
id := userDict at: 'id'.
|
||||||
|
name := userDict at: 'name'.
|
||||||
|
userName := userDict at: 'username'.
|
@ -0,0 +1,5 @@
|
|||||||
|
accessing
|
||||||
|
printOn: aStream
|
||||||
|
super printOn: aStream.
|
||||||
|
aStream
|
||||||
|
nextPutAll: '(', self userName,')'
|
@ -0,0 +1,3 @@
|
|||||||
|
accessing
|
||||||
|
userName
|
||||||
|
^ userName
|
15
Datanalitica.package/TwitterUser.class/properties.json
Normal file
15
Datanalitica.package/TwitterUser.class/properties.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"commentStamp" : "<historical>",
|
||||||
|
"super" : "Object",
|
||||||
|
"category" : "Datanalitica",
|
||||||
|
"classinstvars" : [ ],
|
||||||
|
"pools" : [ ],
|
||||||
|
"classvars" : [ ],
|
||||||
|
"instvars" : [
|
||||||
|
"id",
|
||||||
|
"name",
|
||||||
|
"userName"
|
||||||
|
],
|
||||||
|
"name" : "TwitterUser",
|
||||||
|
"type" : "normal"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user