Data mining-Twitter

0 respostas
pythonjson
R

import tweepy
from tweepy.auth import OAuthHandler
import json

consumer_key= "h5GTup6ekDErIN8FhaQrTiI49"
consumer_secret= "YMfAhnaAgm0mbZA2jTdxm78fKCabmccSsooLFPKizv72qJsaTe"
access_token= "602830853-7ohvyz4JCDXDjgLcyRGJIbKGFo7nfvELjj3H7xFl"
access_token_secret= “8jIUOEvP7BCItKgMfm1qMlgyJWlRZEC9nJyZT20QsVzN1”

auth = OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

api= tweepy.API(auth)

The search term you want to find

query = “viado”

Language code (follows ISO 639-1 standards)

language = “pt”

Calling the user_timeline function with our parameters

results = api.search(q=query, lang=language, count=1000)

alguém tem ideia e como transformo isso aqui num arquivo Json?

Criado 23 de novembro de 2018
Respostas 0
Participantes 1