Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import re
- import json
- import argparse
- import POGOProtos
- import POGOProtos.Data_pb2
- import POGOProtos.Enums_pb2
- import POGOProtos.Inventory_pb2
- import POGOProtos.Map_pb2
- import POGOProtos.Settings_pb2
- import POGOProtos.Networking
- import POGOProtos.Networking.Envelopes_pb2
- import POGOProtos.Networking.Requests_pb2
- import POGOProtos.Networking.Responses_pb2
- import POGOProtos.Networking.Requests
- import POGOProtos.Networking.Requests.Messages_pb2
- import pushbullet
- import os.path
- import time
- from datetime import datetime
- #from geopy.geocoders import GoogleV3
- from requests.packages.urllib3.exceptions import InsecureRequestWarning
- requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
- from s2sphere import *
- from pushbullet import Pushbullet
- ################### API KEY #############
- users_google=[]
- passwords_google=[]
- li_user=''
- li_password=''
- pb = Pushbullet('API_KEY')
- ################## PUSH IT ##############
- 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))
- 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))
- if wild.pokemon_data.pokemon_id in POKEMONS_PUSH:
- 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