Twitter User-App Authentication

1

I'm developing some Python scripts with the intention of bringing specific tweets and doing later analysis, but I'm having doubts about the type of Twitter authentication.

So I noticed, there are two types of authentication, User-Based Authentication and User-Authentication.

My question is directly related to the RATE LIMITS that the authentication types allow me. In User-Based I can bring 180 items to each Window (15 minutes) and the User-App allows me the number of 450 items.

What should I do to perform User-App Authentication? Because I only found information regarding User-Based.

Thank you!

    
asked by anonymous 07.02.2017 / 18:17

1 answer

2

Use twython . An example usage:

from twython import Twython, TwythonError

OAUTH_TOKEN = ''
OAUTH_TOKEN_SECRET = ''
APP_SECRET = ''
APP_KEY = ''

twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)

try:
    twitter.update_status(status='@MrMarcioPessoa isso funciona mesmo')
except TwythonError as e:
    print e

To get the contents of the APP_KEY, APP_SECRET, OAUTH_TOKEN, and OAUTH_TOKEN_SECRET variables, follow the walkthrough of the Twitter Application Management page. / p>     

27.02.2017 / 02:17