Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.82 KB | None | 0 0
  1. import requests
  2. import re
  3. import json
  4. import argparse
  5. import POGOProtos
  6. import POGOProtos.Data_pb2
  7. import POGOProtos.Enums_pb2
  8. import POGOProtos.Inventory_pb2
  9. import POGOProtos.Map_pb2
  10. import POGOProtos.Settings_pb2
  11. import POGOProtos.Networking
  12. import POGOProtos.Networking.Envelopes_pb2
  13. import POGOProtos.Networking.Requests_pb2
  14. import POGOProtos.Networking.Responses_pb2
  15. import POGOProtos.Networking.Requests
  16. import POGOProtos.Networking.Requests.Messages_pb2
  17. import pushbullet
  18. import os.path
  19.  
  20. import time
  21.  
  22. from datetime import datetime
  23. #from geopy.geocoders import GoogleV3
  24. from requests.packages.urllib3.exceptions import InsecureRequestWarning
  25. requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
  26. from s2sphere import *
  27. from pushbullet import Pushbullet
  28.  
  29.  
  30.  
  31. ################### API KEY #############
  32.  
  33.  
  34. users_google=[]
  35. passwords_google=[]
  36.  
  37. li_user=''
  38. li_password=''
  39.  
  40. pb = Pushbullet('API_KEY')
  41.  
  42. ################## PUSH IT ##############
  43.  
  44.                                 f.write('{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\n'.format(pokemons[wild.pokemon_data.pokemon_id],wild.pokemon_data.pokemon_id,spawnIDint,wild.latitude,wild.longitude,(wild.last_modified_timestamp_ms+wild.time_till_hidden_ms)/1000.0-900.0,wild.last_modified_timestamp_ms/1000.0,org_tth/1000.0,wild.encounter_id))
  45.                                 add_pokemon(wild.pokemon_data.pokemon_id,spawnIDint, wild.latitude, wild.longitude, int((wild.last_modified_timestamp_ms+wild.time_till_hidden_ms)/1000.0))
  46.  
  47.                                 if wild.pokemon_data.pokemon_id in POKEMONS_PUSH:
  48.                                     push = pb.push_link("Pokemon {} found! Timer {}".format(pokemons[wild.pokemon_data.pokemon_id],int(wild.time_till_hidden_ms/1000.0)), 'http://www.google.com/maps/place/{},{}'.format(wild.latitude,wild.longitude))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement