Skip to content

Instantly share code, notes, and snippets.

View JLFDataScience's full-sized avatar

Jose Luis Fernández Nuevo JLFDataScience

  • FGCSIC
View GitHub Profile
@JLFDataScience
JLFDataScience / Tweets_extracction.py
Last active January 24, 2020 14:16
Tweets extracción advertools
#Extracción de tweets con "advertools" 💾¶
import advertools as adv
adv.twitter.set_auth_params(cred['consumer_key'],
cred['consumer_secret'],
cred['access_token'],
cred['access_token_secret'])
search_words = ['envejecimiento OR longevidad OR personasMayores']#terminos de búsqueda en twitter
df = adv.twitter.search(q=search_words, count=10000, tweet_mode='extended', lang='es');