Pregunta

¿Cómo utilizar la API de Twitter geo.

¿Fue útil?

Solución

Desde que el GeoAPI cerró, se ha más o menos integrado con la API de Twitter. El JSON devuelto por Twitter Consigue estados también devuelve una clave geo en el diccionario y la clave geo_enabled también.

Esto es lo que puede hacer para autorizar y recibir actualizaciones a través de OAuth y la API de Twitter (código Python) -

from twitter import Twitter
from twitter.oauth import OAuth

def get_feeds(screenName):
    twitter = Twitter(auth=OAuth('', '', CONSUMER_KEY, CONSUMER_SECRET))
    statuses = twitter.statuses.user_timeline(screen_name=screenName, include_entities=1, include_rts=True)
    print "Got Status"
    return statuses

Otros consejos

Did you read the Documentation in the link you posted? It says

Requires Authentication : TRUE

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top