This feeder creates a stream from tweets. It is possible to define the keywords, or the users to follow.
Based on go-twitter
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
bearerToken | STRING | empty | Twitter Auth |
keywords | STRING | empty | comma separated keywords that should match on the tweets |
users | STRING | empty | comma separated users list |
rules | STRING | empty | set multiple custom rules separated by the char |
languages | STRING | empty | filter by language (comma separated languages) |
disable_retweet | BOOL | “false” | don’t include retweets in the stream |
disable_quoted | BOOL | “false” | don’t include quoted tweets in the stream |
... | <twitter: users="goofy, mickeymouse",keywords="movie, cartoon", rules="rule1:movie OR cartoon|rule2:mickey mouse OR pluto"> | ...
Output
Text
The main
field of the Message will contain:
- the text of the tweet if it is a normal tweet;
- the text of the retweeted message if it is a retweet;
- the text of the quote if it is a quote tweet;
Extra
Name | Description |
---|---|
link | link to the tweet |
language | language used for the tweet |
username | author of the tweet |
author_id | ID of the author of the tweet |
quoted | “true” if the tweet is a quoted tweet, “false” otherwise |
retweet | “true” if the tweet is a retweeted tweet, “false” otherwise |
response | “true” if the tweet is a response for another tweet, “false” otherwise |
reply_for_user | it contains the userID if the tweet is a reply for a user |
original_link | link of the original tweet if it is a retweet or quoted tweet |
original_username | username of the tweet linked to the current one |
original_name | name of the author of the tweet linked to the current one |
original_text | text of the tweet linked to the current one |
original_userid | ID of the original author of the tweet if it is a retweet or a quote |
matched_rules | list of the matched rules (tags) comma separated |
In some cases the extra field could be empty.
Examples
Soon…