Last active
August 16, 2017 00:43
-
-
Save wrathagom/ea72dbb2616cc3ebd74a4f0f1da71255 to your computer and use it in GitHub Desktop.
Node Red Introduction Code Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone | |
cd node-red-introduction | |
docker-compose up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"topic":"tweets/gracedeemay", | |
"payload":"RT @chrissyteigen: Trump is like, actually racist. He isn't \"saying the wrong thing\". He is actually racist and means this. Holy shit lol w…", | |
"lang":"en", | |
"tweet":{ | |
"created_at":"Wed Aug 16 00:40:34 +0000 2017", | |
"id":897619057712791600, | |
"id_str":"897619057712791552", | |
"text":"RT @chrissyteigen: Trump is like, actually racist. He isn't \"saying the wrong thing\". He is actually racist and means this. Holy shit lol w…", | |
"source":"<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>", | |
"truncated":false, | |
"in_reply_to_status_id":null, | |
"in_reply_to_status_id_str":null, | |
"in_reply_to_user_id":null, | |
"in_reply_to_user_id_str":null, | |
"in_reply_to_screen_name":null, | |
"user":{ | |
"id":2600615184, | |
"id_str":"2600615184", | |
"name":"grace lykins", | |
"screen_name":"gracedeemay", | |
"location":"California, USA", | |
"url":"http://Instagram.com/grace.deemay", | |
"description":"give it time", | |
"protected":false, | |
"verified":false, | |
"followers_count":573, | |
"friends_count":451, | |
"listed_count":9, | |
"favourites_count":16853, | |
"statuses_count":11103, | |
"created_at":"Wed Jul 02 23:30:04 +0000 2014", | |
"utc_offset":-25200, | |
"time_zone":"Arizona", | |
"geo_enabled":true, | |
"lang":"en", | |
"contributors_enabled":false, | |
"is_translator":false, | |
"profile_background_color":"C0DEED", | |
"profile_background_image_url":"http://abs.twimg.com/images/themes/theme1/bg.png", | |
"profile_background_image_url_https":"https://abs.twimg.com/images/themes/theme1/bg.png", | |
"profile_background_tile":false, | |
"profile_link_color":"1DA1F2", | |
"profile_sidebar_border_color":"C0DEED", | |
"profile_sidebar_fill_color":"DDEEF6", | |
"profile_text_color":"333333", | |
"profile_use_background_image":true, | |
"profile_image_url":"http://pbs.twimg.com/profile_images/846451717814181888/6-2AZKzh_normal.jpg", | |
"profile_image_url_https":"https://pbs.twimg.com/profile_images/846451717814181888/6-2AZKzh_normal.jpg", | |
"profile_banner_url":"https://pbs.twimg.com/profile_banners/2600615184/1494305483", | |
"default_profile":true, | |
"default_profile_image":false, | |
"following":null, | |
"follow_request_sent":null, | |
"notifications":null | |
}, | |
"geo":null, | |
"coordinates":null, | |
"place":null, | |
"contributors":null, | |
"retweeted_status":{ | |
"created_at":"Tue Aug 15 22:22:56 +0000 2017", | |
"id":897584419048874000, | |
"id_str":"897584419048873984", | |
"text":"Trump is like, actually racist. He isn't \"saying the wrong thing\". He is actually racist and means this. Holy shit lol what a fucking idiot", | |
"source":"<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>", | |
"truncated":false, | |
"in_reply_to_status_id":null, | |
"in_reply_to_status_id_str":null, | |
"in_reply_to_user_id":null, | |
"in_reply_to_user_id_str":null, | |
"in_reply_to_screen_name":null, | |
"user":{ | |
"id":39364684, | |
"id_str":"39364684", | |
"name":"christine teigen", | |
"screen_name":"chrissyteigen", | |
"location":"everywhere like such as", | |
"url":null, | |
"description":"high-quality person", | |
"protected":false, | |
"verified":true, | |
"followers_count":6793638, | |
"friends_count":4254, | |
"listed_count":6684, | |
"favourites_count":22572, | |
"statuses_count":60935, | |
"created_at":"Mon May 11 22:50:04 +0000 2009", | |
"utc_offset":-25200, | |
"time_zone":"Pacific Time (US & Canada)", | |
"geo_enabled":true, | |
"lang":"en", | |
"contributors_enabled":false, | |
"is_translator":false, | |
"profile_background_color":"394145", | |
"profile_background_image_url":"http://pbs.twimg.com/profile_background_images/464145128299311104/cYV9jdVo.png", | |
"profile_background_image_url_https":"https://pbs.twimg.com/profile_background_images/464145128299311104/cYV9jdVo.png", | |
"profile_background_tile":true, | |
"profile_link_color":"419DE5", | |
"profile_sidebar_border_color":"FFFFFF", | |
"profile_sidebar_fill_color":"7E898F", | |
"profile_text_color":"333333", | |
"profile_use_background_image":true, | |
"profile_image_url":"http://pbs.twimg.com/profile_images/680889019073454080/GMxn5fuf_normal.jpg", | |
"profile_image_url_https":"https://pbs.twimg.com/profile_images/680889019073454080/GMxn5fuf_normal.jpg", | |
"profile_banner_url":"https://pbs.twimg.com/profile_banners/39364684/1490678404", | |
"default_profile":false, | |
"default_profile_image":false, | |
"following":null, | |
"follow_request_sent":null, | |
"notifications":null | |
}, | |
"geo":null, | |
"coordinates":null, | |
"place":null, | |
"contributors":null, | |
"is_quote_status":false, | |
"retweet_count":23008, | |
"favorite_count":86901, | |
"entities":{ | |
"hashtags":[ | |
], | |
"urls":[ | |
], | |
"user_mentions":[ | |
], | |
"symbols":[ | |
] | |
}, | |
"favorited":false, | |
"retweeted":false, | |
"filter_level":"low", | |
"lang":"en" | |
}, | |
"is_quote_status":false, | |
"retweet_count":0, | |
"favorite_count":0, | |
"entities":{ | |
"hashtags":[ | |
], | |
"urls":[ | |
], | |
"user_mentions":[ | |
{ | |
"screen_name":"chrissyteigen", | |
"name":"christine teigen", | |
"id":39364684, | |
"id_str":"39364684", | |
"indices":[ | |
3, | |
17 | |
] | |
} | |
], | |
"symbols":[ | |
] | |
}, | |
"favorited":false, | |
"retweeted":false, | |
"filter_level":"low", | |
"lang":"en", | |
"timestamp_ms":"1502844034971" | |
}, | |
"location":{ | |
"place":"California, USA" | |
}, | |
"_msgid":"187ce5f3.c160da", | |
"sentiment":{ | |
"score":-7, | |
"comparative":-0.2916666666666667, | |
"tokens":[ | |
"rt", | |
"chrissyteigen", | |
"trump", | |
"is", | |
"like", | |
"actually", | |
"racist", | |
"he", | |
"isn't", | |
"saying", | |
"the", | |
"wrong", | |
"thing", | |
"he", | |
"is", | |
"actually", | |
"racist", | |
"and", | |
"means", | |
"this", | |
"holy", | |
"shit", | |
"lol", | |
"w" | |
], | |
"words":[ | |
"lol", | |
"shit", | |
"racist", | |
"wrong", | |
"racist", | |
"like" | |
], | |
"positive":[ | |
"lol", | |
"like" | |
], | |
"negative":[ | |
"shit", | |
"racist", | |
"wrong", | |
"racist" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment