Skip to content

Instantly share code, notes, and snippets.

View LorenaFMarani's full-sized avatar
🏠
Working from home

LorenaFMarani

🏠
Working from home
View GitHub Profile
@marcoscastro
marcoscastro / exemplo_tweepy.py
Last active September 1, 2022 00:06
Obtendo tweets de usuário com Python e tweepy
# acessar https://apps.twitter.com para criar uma nova aplicação
# cada aplicação tem suas próprias chaves
import tweepy
import re
# acessar a aba "Keys and Access Tokens"
# passa o Consumer Key e o Consumer Secret
auth = tweepy.OAuthHandler('46pvnSwIVylfWepbPsP4433wL', 'xWDPHaUkk0ub93qj1DaYgJcO8QtkPUhNFIE7uBAvzbSVLLpLzR')