Guest User

Untitled

a guest
Nov 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import tweepy
  2.  
  3. consumer_key='**********'
  4. consumer_secret='************'
  5. access_token='************'
  6. access_token_secret='***********'
  7. auth=tweepy.OAuthHandler(consumer_key,consumer_secret)
  8. auth.set_access_token(access_token,access_token_secret)
  9. api= tweepy.API(auth)
  10.  
  11.  
  12.  
  13. '''funcion para geolocalizacion'''
  14. def geolocalizacion(api):
  15. latitud=float(input("ingrese la latitud: "))
  16. longitud=float(input("ingrese la longitud: "))
  17. precicion=float(input("ingrese el rango de precicion: "))
  18. ubicacion=api.reverse_geocode(latitud,longitud,precicion)
  19. return(Ubicacion)
Add Comment
Please, Sign In to add comment