Coder Social home page Coder Social logo

pogom's People

Contributors

dreadpiratejhonatan avatar ensingm2 avatar eugenio412 avatar favll avatar koire avatar lisandro52 avatar luzannew avatar marbink avatar medghaim avatar nborrmann avatar pixmaip avatar rawdr avatar sarcher-dev avatar seikur0 avatar yondergod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pogom's Issues

error: cannot invoke setopt() - no curl handle

Hi,

Getting the error below can you help.

Thanks

python runserver.py -u xx -p xx -l 55.846627,-4.423636 -r 5000 -c

2016-07-26 19:41:54,172 [ search] [ INFO] Login successful
Exception in thread search_thread:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/opt/pogom/pogom/search.py", line 233, in search_loop_async
search_async(args)
File "/opt/pogom/pogom/search.py", line 166, in search_async
api.call_async(callback)
File "/opt/pogom/pogom/pgoapi/pgoapi.py", line 93, in call_async
self._rpc.request_async(api_endpoint, self._req_method_list, player_position, callback)
File "/opt/pogom/pogom/pgoapi/rpc_api.py", line 110, in request_async
self._success_callback, self._error_callback, bundle=bundle)
File "/opt/pogom/pogom/pgoapi/parallel_curl.py", line 126, in add_request
self._download_loop()
File "/opt/pogom/pogom/pgoapi/parallel_curl.py", line 158, in _download_loop
self._prepare_handle(curl, item)
File "/opt/pogom/pogom/pgoapi/parallel_curl.py", line 194, in _prepare_handle
curl.setopt(key, value)
error: cannot invoke setopt() - no curl handle

Javascript error

I am trying to use Ngrok to expose my localhost:5000 to the web, and this is working fine on my PC localhost, but it wont display the map on the ngrok public address. I can access the settings but it says "not authenticated, no scans yet, no full scan yet" even though it says logged in, sleeping, last full scan... on my pc. Is this supposed to be compatible with ngrok?

Catch all exceptions during login, and consider them failures

Current behavior: ConnectionError exception bubbles all the way to top, crashing search process

Expected behavior: All exceptions during login are caught, logged, then considered failures to be retried later.

2016-07-28 10:54:43,379 [   auth_ptc] [  ERROR] Server timed out
2016-07-28 10:54:43,383 [     search] [   INFO] Login failed, retrying in 300.00 seconds
2016-07-28 10:59:43,388 [   auth_ptc] [   INFO] Login for: ***
2016-07-28 10:59:53,704 [   auth_ptc] [  ERROR] Server timed out
2016-07-28 10:59:53,706 [     search] [   INFO] Login failed, retrying in 300.00 seconds
2016-07-28 11:04:53,795 [   auth_ptc] [   INFO] Login for: ***
Exception in thread search_thread:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "pogom/pogom/search.py", line 235, in search_loop_async
    search_async(args)
  File "pogom/pogom/search.py", line 157, in search_async
    login_if_necessary(args, step_location)
  File "pogom/pogom/search.py", line 109, in login_if_necessary
    login(args, position)
  File "pogom/pogom/search.py", line 92, in login
    while not api.login(args.auth_service, args.username, args.password):
  File "pogom/pogom/pgoapi/pgoapi.py", line 151, in login
    if not self._rpc.auth_provider.login(username, password):
  File "pogom/pogom/pgoapi/auth_ptc.py", line 73, in login
    r1 = self._session.post(self.PTC_LOGIN_URL, data=data, headers=head, timeout=10)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 518, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 606, in send
    history = [resp for resp in gen] if allow_redirects else []
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 179, in resolve_redirects
    **adapter_kwargs
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 617, in send
    r.content
  File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 741, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
  File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 671, in generate
    raise ConnectionError(e)
ConnectionError: HTTPSConnectionPool(host='sso.pokemon.com', port=443): Read timed out.

Map Download Failed, happened since this morning

Map was running good for me yesterday, but this morning when I checked again, there is no pokemon on the map. Check the log I see this:

2016-07-28 21:25:20,081 [     search] [   INFO] Attempting login
2016-07-28 21:25:20,082 [   auth_ptc] [   INFO] Login for: <REDACTED>
2016-07-28 21:25:20,506 [   auth_ptc] [   INFO] PTC Login successful
2016-07-28 21:25:20,845 [     search] [   INFO] Login successful
2016-07-28 21:25:20,845 [     search] [   INFO] Starting scan of 1945 locations
2016-07-28 21:25:30,850 [    rpc_api] [WARNING] Error downloading map: 0
2016-07-28 21:25:30,851 [     search] [   INFO] Map Download failed. Trying again.
2016-07-28 21:25:30,852 [    rpc_api] [WARNING] Error downloading map: 0
2016-07-28 21:25:30,852 [     search] [   INFO] Map Download failed. Trying again.
2016-07-28 21:25:30,853 [    rpc_api] [WARNING] Error downloading map: 0
2016-07-28 21:25:30,853 [     search] [   INFO] Map Download failed. Trying again.
2016-07-28 21:25:30,855 [    rpc_api] [WARNING] Error downloading map: 0
2016-07-28 21:25:30,855 [     search] [   INFO] Map Download failed. Trying again.
2016-07-28 21:25:30,856 [    rpc_api] [WARNING] Error downloading map: 0

Thanks for the fast map

Change API key?

Hi, i get error form gmaps because of exceeded requests on daily basib of the api key.
How can i modify it an put mine one?

Trying to create marker before Google Maps API is loaded

Upon loading the map the result of '/map-data'-call is processed before google maps api is loaded, resulting in map.js:236 Uncaught ReferenceError: google is not defined and no pokemon will be visible until next call to /map-data is made.

trying to install requirements....

i get this message: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/q6/swvngxj54d94plvfmr1prxt80000gn/T/pip-build-euYNbg/protobuf-to-dict/

KeyError: 'GET_MAP_OBJECTS'

KeyError: 'GET_MAP_OBJECTS'
2016-07-28 20:42:19,790 [ search] [ INFO] Completed 0.73% of scan.
2016-07-28 20:42:19,815 [ search] [ ERROR] Failed to parse response: {'responses': {}}
Traceback (most recent call last):
File "c:\Pokemonstuff\pogom\pogom\search.py", line 129, in search
parse_map(response_dict)
File "c:\Pokemonstuff\pogom\pogom\models.py", line 110, in parse_map
cells = map_dict['responses']['GET_MAP_OBJECTS']['map_cells']

Not really sure what's up with this, could my API be FUBAR?

Is this patched now?

This was easily the best live map but its suddenly stopped working a few hours ago.
Is this the end? or is there any workaround

set_cover() slowing down script init tremendously when a large radius is set.

  1. Set a radius of >10k.
  2. Start the script.
  3. Wait...... wait longer...

It is just annoyingly slow. Everything in this repo seems stripped down and optimised in comparison to the original repo, while the set_cover function - which seems to be added to the org. code - is just really slow. I guess it's the double for loop's fault and possibly the Geodesic methods?

Ideas to consider: a switch for a less-precise method of calculating the points?

Why it bothers me: I wanted to crawl large areas overnight...

[Improvement] Supporting other databases

Motivation

Right now, we have awesome requesting speeds between our server and the API servers, but we are getting bottlenecked by the parsing/saving to the DB.

Posible solution

One way to ease this out is by supporting others RDBMs like MySQL/MariaDB or PostgreSQL (even NoSQL could be useful, e.g. RethinkDB on this PokemonGo-Map fork)

Should we focus on supporting an ORM like Peewee or SQLAlchemy, or just grab a single library like we do now for SQLite?

[ INFO] Map Download failed

2016-07-28 20:43:04,980 [ auth_ptc] [ INFO] PTC Login successful
2016-07-28 20:43:05,651 [ search] [ INFO] Login successful
2016-07-28 20:43:07,301 [ search] [ INFO] Map Download failed. Trying again.
2016-07-28 20:43:07,301 [ search] [ INFO] Map Download failed. Trying again.
2016-07-28 20:43:07,301 [ search] [ INFO] Loading map failed, waiting 0.49182 seconds
2016-07-28 20:43:07,311 [ search] [ INFO] Map Download failed. Trying again.
2016-07-28 20:43:07,331 [ search] [ INFO] Map Download failed. Trying again.
2016-07-28 20:43:07,940 [ search] [ INFO] 8 reqs in 00m02s [ 3.5 reqs/s 3.9KB/s (up) 2.8KB/s (down)] 1.37s av. per request
2016-07-28 20:43:08,930 [ search] [ INFO] 22 reqs in 00m03s [ 6.7 reqs/s 7.1KB/s (up) 5.8KB/s (down)] 0.81s av. per request
2016-07-28 20:43:10,151 [ search] [ INFO] 38 reqs in 00m05s [ 8.4 reqs/s 8.8KB/s (up) 7.4KB/s (down)] 0.71s av. per request
2016-07-28 20:43:11,611 [ search] [ INFO] 55 reqs in 00m06s [ 9.2 reqs/s 9.8KB/s (up) 8.2KB/s (down)] 0.65s av. per request
2016-07-28 20:43:12,782 [ search] [ INFO] 72 reqs in 00m07s [ 10.1 reqs/s 10.6KB/s (up) 8.9KB/s (down)] 0.61s av. per request
2016-07-28 20:43:14,242 [ search] [ INFO] 93 reqs in 00m09s [ 10.8 reqs/s 11.0KB/s (up) 9.5KB/s (down)] 0.58s av. per request
2016-07-28 20:43:15,332 [ search] [ INFO] Map Download failed. Trying again.
2016-07-28 20:43:15,332 [ search] [ INFO] Loading map failed, waiting 0.22140 seconds
2016-07-28 20:43:15,351 [ search] [ INFO] Map Download failed. Trying again.
2016-07-28 20:43:15,641 [ search] [ INFO] 109 reqs in 00m10s [ 10.9 reqs/s 11.2KB/s (up) 9.6KB/s (down)] 0.58s av. per request
2016-07-28 20:43:16,792 [ search] [ INFO] 129 reqs in 00m11s [ 11.6 reqs/s 11.7KB/s (up) 10.3KB/s (down)] 0.56s av. per request
2016-07-28 20:43:17,954 [ search] [ INFO] 148 reqs in 00m12s [ 12.0 reqs/s 12.0KB/s (up) 10.4KB/s (down)] 0.55s av. per request
2016-07-28 20:43:19,375 [ search] [ INFO] 169 reqs in 00m14s [ 12.3 reqs/s 12.1KB/s (up) 10.8KB/s (down)] 0.53s av. per request
2016-07-28 20:43:20,542 [ search] [ INFO] 188 reqs in 00m15s [ 12.6 reqs/s 12.4KB/s (up) 11.0KB/s (down)] 0.54s av. per request
2016-07-28 20:43:21,589 [ search] [ INFO] 205 reqs in 00m16s [ 12.9 reqs/s 12.7KB/s (up) 11.2KB/s (down)] 0.53s av. per request
2016-07-28 20:43:22,842 [ search] [ INFO] 224 reqs in 00m17s [ 13.0 reqs/s 12.7KB/s (up) 11.4KB/s (down)] 0.52s av. per request

[Suggestion] Remotely accessible "direct surroundings" scan

POGOM does a lot of things really well, but it's not very "mobile", in the sense that I can't access it while not in front of my desktop. I could of course forward the port and access my.ip:5000, but that still only gives me vision on the area it's set up to interrogate.

It happens to me fairly regularly that I'm walking or cycling somewhere I haven't configured POGOM to search, but something shiny shows up on my Nearby list. The footprint indicators being in the state that they are, chances of finding the shinies are slim at best.

What I'd like is a page which I can access from e.g. my cell phone, which:

  1. gets my current location in one of several ways*
  2. scans the ~200m around the position once, instead of continuously
  3. overlays the locations of found pokemon (and their "expiration" time) on a map

How to get my current location:
Idea A) Take an initial guess based on the IP from which the request is sent, then refine from user input (click on the map)
Idea B) Creative use of recovery tools (e.g. through the Android Device Manager)
Idea C) Make a simple app that accesses the phone's internal Location API: configure it with your IP address, the correct port, your sniffer account credentials, and add a server-side @route hook to the Flask app for URL-based access.

Especially if the GPS data is sent/received through an app, it might even be desirable to set the center of a search radius to your position (+/- a randomized offset to make it harder to trace the sniffer account to your main based on overlapping location?) and have the scan "follow" you as you move...

Any interest in picking this up, or shall I see how far I get writing an ugly hack myself?

Heroku deployment errors

Unable to simply deploy to Heroku. Is this a limitation of the script or actual errors?

2016-07-27T17:50:32.907411+00:00 app[web.1]: Traceback (most recent call last):
2016-07-27T17:50:32.904649+00:00 app[web.1]: 2016-07-27 17:50:32,904 [ search] [ INFO] Login successful
2016-07-27T17:50:32.907409+00:00 app[web.1]: Exception in thread search_thread:
2016-07-27T17:50:32.907416+00:00 app[web.1]: search_async(args)
2016-07-27T17:50:32.907416+00:00 app[web.1]: File "/app/pogom/search.py", line 157, in search_async
2016-07-27T17:50:32.907414+00:00 app[web.1]: self.__target(_self.__args, *_self.__kwargs)
2016-07-27T17:50:32.907417+00:00 app[web.1]: login_if_necessary(args, step_location)
2016-07-27T17:50:32.907415+00:00 app[web.1]: File "/app/pogom/search.py", line 235, in search_loop_async
2016-07-27T17:50:32.907413+00:00 app[web.1]: self.run()
2016-07-27T17:50:32.907412+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/threading.py", line 801, in __bootstrap_inner
2016-07-27T17:50:32.907413+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/threading.py", line 754, in run
2016-07-27T17:50:32.907419+00:00 app[web.1]: TypeError: unsupported operand type(s) for /: 'str' and 'int'
2016-07-27T17:50:32.907442+00:00 app[web.1]:
2016-07-27T17:50:32.907418+00:00 app[web.1]: File "/app/pogom/search.py", line 105, in login_if_necessary
2016-07-27T17:50:32.907418+00:00 app[web.1]: remaining_time = api._rpc.auth_provider._ticket_expire / 1000 - time.time()

incomplete scanning

I set scan radius to 15000, that makes 27k locations. The scan never finishes all of them and restarts after 13minutes of scanning. You can se the unscanned area on the picture, part of log is here.
I guess that has something to do with need to finish cycle in 15mins to be 100% sure to catch all spawns?
That's why I'd love to see possibility to use more accounts for scanning.

Maps doesn't load on mobile devices

Hi,

Loving this, but the map doesn't load on a mobile device. Works fine on desktop browsers, even trying to load desktop version of the site on the phone doesn't work.

I have tried this on Safari and Chrome on an iphone.

Many thanks.

Move to different proto engine

Parsing the protobufs is a major bottleneck right now.

Google's python library is really slow. There are some alternatives, but the main problem seems to be that they are all hard to install, especially on windows. They usually require C/C++ compilers during installation.

Maybe someone knows more and can try some of the stuff.

-P flag not working for changing port. (solved - root/sudo is required)

Like the title says, if I try change the port using the -P flag, pyserver.py just crashes with the below output.

Traceback (most recent call last):
File "runserver.py", line 59, in
app.run(threaded=True, debug=args.debug, host=args.host, port=args.port)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 843, in run
run_simple(host, port, self, *_options)
File "/usr/local/lib/python2.7/site-packages/werkzeug/serving.py", line 694, in run_simple
inner()
File "/usr/local/lib/python2.7/site-packages/werkzeug/serving.py", line 656, in inner
fd=fd)
File "/usr/local/lib/python2.7/site-packages/werkzeug/serving.py", line 544, in make_server
passthrough_errors, ssl_context, fd=fd)
File "/usr/local/lib/python2.7/site-packages/werkzeug/serving.py", line 464, in init
HTTPServer.init(self, (host, int(port)), handler)
File "/usr/local/lib/python2.7/SocketServer.py", line 420, in init
self.server_bind()
File "/usr/local/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/local/lib/python2.7/SocketServer.py", line 434, in server_bind
self.socket.bind(self.server_address)
File "/usr/local/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(_args)
socket.error: [Errno 13] Permission denied
Exception in thread search_thread:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "/home/ubuntu/poke2/pogom/search.py", line 235, in search_loop_async
search_async(args)
File "/home/ubuntu/poke2/pogom/search.py", line 157, in search_async
login_if_necessary(args, step_location)
File "/home/ubuntu/poke2/pogom/search.py", line 111, in login_if_necessary
login(args, position)
File "/home/ubuntu/poke2/pogom/search.py", line 92, in login
while not api.login(args.auth_service, args.username, args.password):
File "/home/ubuntu/poke2/pogom/pgoapi/pgoapi.py", line 151, in login
if not self._rpc.auth_provider.login(username, password):
File "/home/ubuntu/poke2/pogom/pgoapi/auth_ptc.py", line 54, in login
r = self._session.get(self.PTC_LOGIN_URL, headers=head, timeout=10)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 487, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
prep = self.prepare_request(req)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 394, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 295, in prepare
self.prepare_url(url, params)
File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 362, in prepare_url
host = host.encode('idna').decode('utf-8')
LookupError: unknown encoding: idna

Tried running both with and without the -c flag to no avail.

show all spawns

add switch to show all spawn points so user can get idea about their distribution

trying to install requirements....

i get this message: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/q6/swvngxj54d94plvfmr1prxt80000gn/T/pip-build-euYNbg/protobuf-to-dict/

Large portion of scanned area barren when there should be many pokemon.

pogomap

Login: google
Scan area: 10000
Scan Started: ~8pm CST
Scan issues: Sometime between ~11pm CST and 6:20am CST
Other: -c not in use

So this is what my map looked like when I woke up this morning. The Scan was still running, but for some reason only populating areas on the outer rim of the area. There were no error messages.

Previously the scan was not populating any pokemon in this area, but rather only pokemon in the empty space. The scan had been set to 10000, so I assumed it was simply too large a radius for the algorithm to handle.

I tried moving the point around, but it only populated pokemon in areas that were previously part of the outer rim of the initial search.

I resolved the issue by swapping to my PTC account and restarting the scan. I had some different issues then so I won't post them here, but it did populate the previously barren area though I don't know how accurate it was.

Handle malformed login response

As of commit eed1f96:

2016-07-27 13:13:33,011 [     search] [   INFO]  6765 reqs in 01m26s  [ 78.2 reqs/s 132.4KB/s (up)  92.7KB/s (down)] 0.09s av. per request
2016-07-27 13:13:34,798 [     search] [   INFO]  6790 reqs in 01m28s  [ 76.9 reqs/s 130.3KB/s (up)  91.2KB/s (down)] 0.09s av. per request
2016-07-27 13:13:34,799 [     search] [   INFO] Scan finished. Sleeping 91.70 seconds before continuing.
2016-07-27 13:15:06,519 [     search] [   INFO] Starting scan of 6790 locations
2016-07-27 13:15:06,520 [     search] [   INFO] Login has or is about to expire
2016-07-27 13:15:06,520 [     search] [   INFO] Attempting login
2016-07-27 13:15:06,527 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:15:06,742 [   auth_ptc] [  ERROR] Could not decode response: <html><body>Not found (error to origin)</body></html>
2016-07-27 13:15:06,743 [     search] [   INFO] Login failed, retrying in 1.00 seconds
2016-07-27 13:15:07,749 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:15:17,885 [   auth_ptc] [  ERROR] Server timed out
2016-07-27 13:15:17,887 [     search] [   INFO] Login failed, retrying in 1.80 seconds
2016-07-27 13:15:19,691 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:15:29,872 [   auth_ptc] [  ERROR] Server timed out
2016-07-27 13:15:29,873 [     search] [   INFO] Login failed, retrying in 3.24 seconds
2016-07-27 13:15:33,120 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:15:43,281 [   auth_ptc] [  ERROR] Server timed out
2016-07-27 13:15:43,284 [     search] [   INFO] Login failed, retrying in 5.84 seconds
2016-07-27 13:15:49,131 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:15:59,346 [   auth_ptc] [  ERROR] Server timed out
2016-07-27 13:15:59,349 [     search] [   INFO] Login failed, retrying in 10.52 seconds
2016-07-27 13:16:09,877 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:16:20,040 [   auth_ptc] [  ERROR] Server timed out
2016-07-27 13:16:20,041 [     search] [   INFO] Login failed, retrying in 18.94 seconds
2016-07-27 13:16:38,999 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:16:49,204 [   auth_ptc] [  ERROR] Server timed out
2016-07-27 13:16:49,207 [     search] [   INFO] Login failed, retrying in 34.10 seconds
2016-07-27 13:17:23,336 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:17:23,480 [   auth_ptc] [  ERROR] Could not decode response: <html><body>Not found (error to origin)</body></html>
2016-07-27 13:17:23,480 [     search] [   INFO] Login failed, retrying in 61.41 seconds
2016-07-27 13:18:24,939 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:18:35,107 [   auth_ptc] [  ERROR] Server timed out
2016-07-27 13:18:35,108 [     search] [   INFO] Login failed, retrying in 110.60 seconds
2016-07-27 13:20:25,805 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:20:36,000 [   auth_ptc] [  ERROR] Server timed out
2016-07-27 13:20:36,002 [     search] [   INFO] Login failed, retrying in 199.16 seconds
2016-07-27 13:23:55,232 [   auth_ptc] [   INFO] Login for: ***
2016-07-27 13:24:05,431 [   auth_ptc] [  ERROR] Server timed out
2016-07-27 13:24:05,432 [     search] [   INFO] Login failed, retrying in 300.00 seconds
2016-07-27 13:29:05,502 [   auth_ptc] [   INFO] Login for: ***
Exception in thread search_thread:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "pogom/pogom/search.py", line 233, in search_loop_async
    search_async(args)
  File "pogom/pogom/search.py", line 158, in search_async
    login_if_necessary(args, step_location)
  File "pogom/pogom/search.py", line 110, in login_if_necessary
    login(args, position)
  File "pogom/pogom/search.py", line 93, in login
    while not api.login(args.auth_service, args.username, args.password):
  File "pogom/pogom/pgoapi/pgoapi.py", line 151, in login
    if not self._rpc.auth_provider.login(username, password):
  File "pogom/pogom/pgoapi/auth_ptc.py", line 62, in login
    self.log.error('Could not decode response: {}'.format(r.content.decode('utf-8')))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 296: ordinal not in range(128)

Segmentation fault when control c exiting the program

2016-07-26 21:06:09,185 [ search] [ INFO] 304 reqs in 00m07s [ 44.5 ret
2016-07-26 21:06:09,613 [ search] [ INFO] 324 reqs in 00m07s [ 44.7 ret
2016-07-26 21:06:10,078 [ search] [ INFO] 344 reqs in 00m08s [ 44.5 ret
2016-07-26 21:06:10,493 [ search] [ INFO] 365 reqs in 00m08s [ 44.9 ret
^CSegmentation fault

How To Use?

I installed and I ran my username/password command and nothing happens, I only get this

``2016-07-26 16:42:26,095 [     search] [   INFO] Starting scan of 1 locations
2016-07-26 16:42:26,335 [     search] [   INFO]     1 reqs in 00m00s  [  4.2 reqs/s   4.1KB/s (up)  27.4KB/s (down)] 0.11s av. per request
2016-07-26 16:42:26,335 [     search] [   INFO] Scan finished. Sleeping 179.76 seconds before continuing.

Theres no other directions in the readme. I tried opening localhost:8000 on my browser to see if a map shows and nothing what do I do now

Error on Mac installing requirements.

Not complete sure what all this means. This is what I get in terminal below. OSX 10.11

1 warning generated.
In file included from src/threadsupport.c:1:
src/pycurl.h:190:5: warning: "libcurl was compiled with SSL support, but configure could not determine which "      "library was used; thus no SSL crypto locking callbacks will be set, which may "      "cause random crashes on SSL requests" [-W#warnings]
#   warning \
    ^
1 warning generated.
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/src/docstrings.o build/temp.macosx-10.6-intel-2.7/src/easy.o build/temp.macosx-10.6-intel-2.7/src/module.o build/temp.macosx-10.6-intel-2.7/src/multi.o build/temp.macosx-10.6-intel-2.7/src/oscompat.o build/temp.macosx-10.6-intel-2.7/src/pythoncompat.o build/temp.macosx-10.6-intel-2.7/src/share.o build/temp.macosx-10.6-intel-2.7/src/stringcompat.o build/temp.macosx-10.6-intel-2.7/src/threadsupport.o -lcurl -o build/lib.macosx-10.6-intel-2.7/pycurl.so
running install_lib
copying build/lib.macosx-10.6-intel-2.7/pycurl.so -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
running install_data
creating /Library/Frameworks/Python.framework/Versions/2.7/share/doc/pycurl
error: could not create '/Library/Frameworks/Python.framework/Versions/2.7/share/doc/pycurl': Permission denied

----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/var/folders/bb/qkc_fmd51rs5hvy2fj8t2tz00000gn/T/pip-build-aod0a7/pycurl/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/bb/qkc_fmd51rs5hvy2fj8t2tz00000gn/T/pip-QfOOP4-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/bb/qkc_fmd51rs5hvy2fj8t2tz00000gn/T/pip-build-aod0a7/pycurl/

Hide Pokemon

I know you can type them in, but is there cmd line I can add so i don't need to keep typing them in? no fun when your using ngrok.. Thank you.. This is great map!

How do I fix OSError: Cannot load native module 'Cryptodome.Cipher._raw_ecb'?

when i run the
python filelocation\runserver.py -u username -p password -l "x, y" -r 10 pause
and it gives me this

Traceback (most recent call last): File "D:\Programming\Project\Python\pogom-master\runserver.py", line 9, in <mo dule> from pogom.app import Pogom File "D:\Programming\Project\Python\pogom-master\pogom\app.py", line 13, in <m odule> from .search import set_cover File "D:\Programming\Project\Python\pogom-master\pogom\search.py", line 12, in <module> from pgoapi import PGoApi File "D:\Programming\Project\Python\pogom-master\pogom\pgoapi\__init__.py", li ne 1, in <module> from pgoapi import * File "D:\Programming\Project\Python\pogom-master\pogom\pgoapi\pgoapi.py", line 34, in <module> from auth_google import AuthGoogle File "D:\Programming\Project\Python\pogom-master\pogom\pgoapi\auth_google.py", line 29, in <module> from gpsoauth import perform_master_login, perform_oauth File "D:\Programming\Python\lib\site-packages\gpsoauth\__init__.py", line 4, i n <module> from . import google File "D:\Programming\Python\lib\site-packages\gpsoauth\google.py", line 4, in <module> from Cryptodome.PublicKey import RSA File "D:\Programming\Python\lib\site-packages\Cryptodome\PublicKey\RSA.py", li ne 79, in <module> from Cryptodome.IO import PKCS8, PEM File "D:\Programming\Python\lib\site-packages\Cryptodome\IO\PKCS8.py", line 73 , in <module> from Cryptodome.IO._PBES import PBES1, PBES2, PbesError File "D:\Programming\Python\lib\site-packages\Cryptodome\IO\_PBES.py", line 44 , in <module> from Cryptodome.Cipher import DES, ARC2, DES3, AES File "D:\Programming\Python\lib\site-packages\Cryptodome\Cipher\__init__.py", line 78, in <module> from Cryptodome.Cipher._mode_ecb import _create_ecb_cipher File "D:\Programming\Python\lib\site-packages\Cryptodome\Cipher\_mode_ecb.py", line 46, in <module> """ File "D:\Programming\Python\lib\site-packages\Cryptodome\Util\_raw_api.py", li ne 168, in load_pycryptodome_raw_lib raise OSError("Cannot load native module '%s'" % name) OSError: Cannot load native module 'Cryptodome.Cipher._raw_ecb'

pycurl.error: (4, '') when trying to run

I've installed everything that I needed and when I try to boot it:

root@kontakt2:~/pogom# python runserver.py -u polishtest -p polishtest -l 54.337383, 18.619389 -r 3
File "runserver.py", line 9, in
from pogom.app import Pogom
File "/root/pogom/pogom/app.py", line 13, in
from .search import set_cover
File "/root/pogom/pogom/search.py", line 20, in
api = PGoApi()
File "/root/pogom/pogom/pgoapi/pgoapi.py", line 48, in init
self._rpc = RpcApi()
File "/root/pogom/pogom/pgoapi/rpc_api.py", line 58, in init
pycurl.CONNECTTIMEOUT: 10000, pycurl.CAINFO: certifi.where()}, 8)
File "/root/pogom/pogom/pgoapi/parallel_curl.py", line 62, in init
c.setopt(key, value)
pycurl.error: (4, '')

My config:

root@kontakt2:~/pogom/pogom# vi init.py
#!/usr/bin/python

-- coding: utf-8 --

config = {
'LOCALE': 'en',
'LOCALES_DIR': 'static/locales',
'ROOT_PATH': None,
'GOOGLEMAPS_KEY': 'AIzaSyAGbvwXvHa6voPmM6JqJ8duBZxxxxxxxxx'
}

Geolocation and search box to change location

What is the unit ?
I put 10 and was thinking it was kilometers but it was so small like 10m so I tried 10000 and it was so huge, finally my go value was 1500.

Also feature that would be cool is a geolocation button to scan in our areas and a search box to change location around the globe very easily

Btw nice project, i prefer this one than the others

Map Download Failed Error when using Google account

Was getting Map Download failed error when using -c. Downloaded latest version. Getting this error now only when using Google to login. (PTC works)

2016-07-26 19:03:41,253 [auth_google] [ INFO] Google Login successful.
2016-07-26 19:03:41,325 [ search] [ INFO] Login successful
2016-07-26 19:03:42,221 [ rpc_api] [ ERROR] Could not parse response:
Traceback (most recent call last): File "c:\pokeman\pogom\pgoapi\rpc_api.py", line 205, in parse_main_request response_proto.ParseFromString(response_content)
File "C:\Python27\lib\site-packages\google\protobuf\message.py", line 186, in ParseFromString self.MergeFromString(serialized)
File "C:\Python27\lib\site-packages\google\protobuf\internal\python_message.py", line 844, in MergeFromString raise message_mod.DecodeError('Unexpected end-group tag.') DecodeError: Unexpected end-group tag.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.