flexget.plugins.input.twitterfeed module#

class flexget.plugins.input.twitterfeed.TwitterFeed[source]#

Bases: object

Parse a twitter feed.

Example:

twitterfeed:
  account: <account>
  consumer_key: <consumer_key>
  consumer_secret: <consumer_secret>
  access_token_key: <access_token_key>
  access_token_secret: <access_token_secret>
By default, the 50 last tweets are fetched corresponding to the option:

all_entries: yes

To change that default number:

tweets: 75

Beware that Twitter only allows 300 requests during a 15 minutes window.

If you want to process only new tweets:

all_entries: no

That option’s behaviour is changed if the corresponding task’s configuration has been changed. In that case, new tweets are fetched and if there are no more than tweets, older ones are fetched to have tweets of them in total.

entry_from_tweet(tweet)[source]#
get_tweets(account, number=1000, since_id=None, max_id=None)[source]#

Fetch tweets from twitter account account.

on_task_input(task, config)[source]#
on_task_start(task, config)[source]#
schema = {'additionalProperties': False, 'properties': {'access_token_key': {'type': 'string'}, 'access_token_secret': {'type': 'string'}, 'account': {'type': 'string'}, 'all_entries': {'default': True, 'type': 'boolean'}, 'consumer_key': {'type': 'string'}, 'consumer_secret': {'type': 'string'}, 'tweets': {'default': 50, 'type': 'number'}}, 'required': ['account', 'consumer_key', 'consumer_secret', 'access_token_secret', 'access_token_key'], 'type': 'object'}#
flexget.plugins.input.twitterfeed.register_plugin()[source]#