From a1519fc51035ddaed560a47ffe3e1fb7505a3f9b Mon Sep 17 00:00:00 2001 From: ruidajo Date: Mon, 28 Mar 2022 18:58:07 -0500 Subject: [PATCH] Creating tweet creation from nitter. --- Datanalitica.package/Tweet.class/instance/fromNitter..st | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Datanalitica.package/Tweet.class/instance/fromNitter..st diff --git a/Datanalitica.package/Tweet.class/instance/fromNitter..st b/Datanalitica.package/Tweet.class/instance/fromNitter..st new file mode 100644 index 0000000..81bfe08 --- /dev/null +++ b/Datanalitica.package/Tweet.class/instance/fromNitter..st @@ -0,0 +1,9 @@ +accessing +fromNitter: aDictionary + "created := (aDictionary at: 'pubDate') asDateAndTime." + text := aDictionary at: 'text'. + "id := aDictionary at: 'id'. + authorId := aDictionary at: 'author_id'." + user := aDictionary at: 'creator'. + "conversationId := aDictionary at: 'conversation_id' ifAbsent: [ '' ]." + ^ self \ No newline at end of file