Twitter Sensor Node
The twitter sensor node listens to the Twitter accounts of various financial influencers in real-time. When a selected financial influencer tweets, this tweet is added to the message and outputted.
You can send a test message by clicking the square on the left side of the node. It will replay a message that matches your configured filter. If it cannot find such a message, one will be emitted that doesn’t match the filter.
Note, this sensor node also adds image information to the message output that can be later processed.
Configuration
Input
n.a.
Output
The message will be enriched by the tweet
property:
Example message (regular tweet)
{
"payload": "Starlink now over 1M user terminals manufactured",
"sensor": "twitter",
"tweet": {
"created_at": "2022-09-25 19:04:39+00:00",
"id": 1574112663864430600,
"id_str": "1574112663864430593",
"text": "Starlink now over 1M user terminals manufactured",
"source": "Twitter for iPhone",
"source_url": "http://twitter.com/download/iphone",
"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": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": null,
"url": null,
"description": null,
"translator_type": "none",
"protected": false,
"verified": true,
"followers_count": 106929281,
"friends_count": 122,
"listed_count": 98000,
"favourites_count": 14216,
"statuses_count": 19345,
"created_at": "2009-06-02 20:12:29+00:00",
"utc_offset": null,
"time_zone": null,
"geo_enabled": false,
"lang": null,
"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": "0084B4",
"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/1572573363255525377/Xz3fufYY_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1572573363255525377/Xz3fufYY_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/44196397/1576183471",
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": null,
"notifications": null,
"withheld_in_countries": []
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"entities": {
"hashtags": [],
"urls": [],
"user_mentions": [],
"symbols": []
},
"favorited": false,
"retweeted": false,
"filter_level": "low",
"lang": "en",
"timestamp_ms": 1664132679321,
"is_retweet": false,
"is_quote": false,
"quoted_text": "",
"raw_text": "Starlink now over 1M user terminals manufactured"
}
}
Example message (retweet)
{
"payload": "RT @SpaceX: Falcon 9 launches 52 Starlink satellites to orbit https://twitter.com/SpaceX/status/1573846653320192002/photo/1",
"sensor": "twitter",
"tweet": {
"created_at": "2022-09-25 10:31:04+00:00",
"id": 1573983419159048200,
"id_str": "1573983419159048192",
"text": "RT @SpaceX: Falcon 9 launches 52 Starlink satellites to orbit https://twitter.com/SpaceX/status/1573846653320192002/photo/1",
"source": "Twitter for iPhone",
"source_url": "http://twitter.com/download/iphone",
"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": 44196397,
"id_str": "44196397",
"name": "Elon Musk",
"screen_name": "elonmusk",
"location": null,
"url": null,
"description": null,
"translator_type": "none",
"protected": false,
"verified": true,
"followers_count": 106919677,
"friends_count": 122,
"listed_count": 97995,
"favourites_count": 14211,
"statuses_count": 19344,
"created_at": "2009-06-02 20:12:29+00:00",
"utc_offset": null,
"time_zone": null,
"geo_enabled": false,
"lang": null,
"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": "0084B4",
"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/1572573363255525377/Xz3fufYY_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1572573363255525377/Xz3fufYY_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/44196397/1576183471",
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": null,
"notifications": null,
"withheld_in_countries": []
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"retweeted_status": {
"created_at": "2022-09-25 01:27:37+00:00",
"id": 1573846653320192000,
"id_str": "1573846653320192002",
"text": "Falcon 9 launches 52 Starlink satellites to orbit https://t.co/A4eGu4lmz0",
"display_text_range": [0, 49],
"source": "Twitter for iPhone",
"source_url": "http://twitter.com/download/iphone",
"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": 34743251,
"id_str": "34743251",
"name": "SpaceX",
"screen_name": "SpaceX",
"location": "Hawthorne, CA",
"url": "http://www.spacex.com",
"description": "SpaceX designs, manufactures and launches the world’s most advanced rockets and spacecraft",
"translator_type": "none",
"protected": false,
"verified": true,
"followers_count": 24694291,
"friends_count": 99,
"listed_count": 35794,
"favourites_count": 387,
"statuses_count": 6168,
"created_at": "2009-04-23 21:53:30+00:00",
"utc_offset": null,
"time_zone": null,
"geo_enabled": false,
"lang": null,
"contributors_enabled": false,
"is_translator": false,
"profile_background_color": "000000",
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif",
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif",
"profile_background_tile": false,
"profile_link_color": "62616B",
"profile_sidebar_border_color": "FFFFFF",
"profile_sidebar_fill_color": "EFEFEF",
"profile_text_color": "333333",
"profile_use_background_image": true,
"profile_image_url": "http://pbs.twimg.com/profile_images/1082744382585856001/rH_k3PtQ_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1082744382585856001/rH_k3PtQ_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/34743251/1596331248",
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": null,
"notifications": null,
"withheld_in_countries": []
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
"quote_count": 408,
"reply_count": 1131,
"retweet_count": 5653,
"favorite_count": 58052,
"entities": {
"hashtags": [],
"urls": [],
"user_mentions": [],
"symbols": [],
"media": [
{
"id": 1573846649167908900,
"id_str": "1573846649167908866",
"indices": [50, 73],
"media_url": "http://pbs.twimg.com/media/FddtMFaXkAIya_s.jpg",
"media_url_https": "https://pbs.twimg.com/media/FddtMFaXkAIya_s.jpg",
"url": "https://t.co/A4eGu4lmz0",
"display_url": "pic.twitter.com/A4eGu4lmz0",
"expanded_url": "https://twitter.com/SpaceX/status/1573846653320192002/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"large": {
"w": 1364,
"h": 2048,
"resize": "fit"
},
"medium": {
"w": 799,
"h": 1200,
"resize": "fit"
},
"small": {
"w": 453,
"h": 680,
"resize": "fit"
}
}
}
]
},
"extended_entities": {
"media": [
{
"id": 1573846649167908900,
"id_str": "1573846649167908866",
"indices": [50, 73],
"media_url": "http://pbs.twimg.com/media/FddtMFaXkAIya_s.jpg",
"media_url_https": "https://pbs.twimg.com/media/FddtMFaXkAIya_s.jpg",
"url": "https://t.co/A4eGu4lmz0",
"display_url": "pic.twitter.com/A4eGu4lmz0",
"expanded_url": "https://twitter.com/SpaceX/status/1573846653320192002/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"large": {
"w": 1364,
"h": 2048,
"resize": "fit"
},
"medium": {
"w": 799,
"h": 1200,
"resize": "fit"
},
"small": {
"w": 453,
"h": 680,
"resize": "fit"
}
}
}
]
},
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"filter_level": "low",
"lang": "en"
},
"is_quote_status": false,
"quote_count": 0,
"reply_count": 0,
"retweet_count": 0,
"favorite_count": 0,
"entities": {
"hashtags": [],
"urls": [],
"user_mentions": [
{
"screen_name": "SpaceX",
"name": "SpaceX",
"id": 34743251,
"id_str": "34743251",
"indices": [3, 10]
}
],
"symbols": [],
"media": [
{
"id": 1573846649167908900,
"id_str": "1573846649167908866",
"indices": [62, 85],
"media_url": "http://pbs.twimg.com/media/FddtMFaXkAIya_s.jpg",
"media_url_https": "https://pbs.twimg.com/media/FddtMFaXkAIya_s.jpg",
"url": "https://t.co/A4eGu4lmz0",
"display_url": "pic.twitter.com/A4eGu4lmz0",
"expanded_url": "https://twitter.com/SpaceX/status/1573846653320192002/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"large": {
"w": 1364,
"h": 2048,
"resize": "fit"
},
"medium": {
"w": 799,
"h": 1200,
"resize": "fit"
},
"small": {
"w": 453,
"h": 680,
"resize": "fit"
}
},
"source_status_id": 1573846653320192000,
"source_status_id_str": "1573846653320192002",
"source_user_id": 34743251,
"source_user_id_str": "34743251"
}
]
},
"extended_entities": {
"media": [
{
"id": 1573846649167908900,
"id_str": "1573846649167908866",
"indices": [62, 85],
"media_url": "http://pbs.twimg.com/media/FddtMFaXkAIya_s.jpg",
"media_url_https": "https://pbs.twimg.com/media/FddtMFaXkAIya_s.jpg",
"url": "https://t.co/A4eGu4lmz0",
"display_url": "pic.twitter.com/A4eGu4lmz0",
"expanded_url": "https://twitter.com/SpaceX/status/1573846653320192002/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"large": {
"w": 1364,
"h": 2048,
"resize": "fit"
},
"medium": {
"w": 799,
"h": 1200,
"resize": "fit"
},
"small": {
"w": 453,
"h": 680,
"resize": "fit"
}
},
"source_status_id": 1573846653320192000,
"source_status_id_str": "1573846653320192002",
"source_user_id": 34743251,
"source_user_id_str": "34743251"
}
]
},
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"filter_level": "low",
"lang": "en",
"timestamp_ms": 1664101864982,
"is_retweet": true,
"is_quote": false,
"quoted_text": "",
"raw_text": "RT @SpaceX: Falcon 9 launches 52 Starlink satellites to orbit https://t.co/A4eGu4lmz0"
}
}
Last updated on
Sep 27, 2022