Giter VIP home page Giter VIP logo

spawnscan's People

Contributors

ckirkman avatar dreamingemma avatar hegz avatar jacobk avatar tbterra avatar xqn819 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

spawnscan's Issues

[bug] npm install -r requirements.txt

[root@instance-1 spawnScan]# npm install -r requirements.txt
npm WARN invalid config registry="requirements.txt"
npm WARN invalid config Must be a full url with 'http://'
npm ERR! install Couldn't read dependencies
npm ERR! Error: ENOENT, open '/home/spawnScan/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]

npm ERR! System Linux 3.10.0-327.28.2.el7.x86_64
npm ERR! command "node" "/bin/npm" "install" "-r" "requirements.txt"
npm ERR! cwd /home/spawnScan
npm ERR! node -v v0.10.42
npm ERR! npm -v 1.3.6
npm ERR! path /home/spawnScan/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/spawnScan/npm-debug.log
npm ERR! not ok code 0

anyone can help me?

I know this repeated but

AttributeError: 'NoneType' object has no attribute 'join'
this is a clone from about 10-20mins ago and its throwing that ? got any idea how to fix it ?

showing take 0 hours

spawnScan>python check.py
total of 1178 steps covering 11.53601633 km^2
with 24 workers, doing 50 scans each, would take 0 hours

spawnScan>python spawn.py
total of 1178 steps
with 24 workers, doing 50 scans each, would take 0 hours
worker 0 is doing steps 0 to 50
worker 1 is doing steps 50 to 100
worker 2 is doing steps 100 to 150
worker 3 is doing steps 150 to 200
worker 4 is doing steps 200 to 250

Now sleeping for...

worker 0 took 10.5369999409 seconds to do first pass, now sleeping for 589.463000059

is something wrong ? I'm covering like 800 square meters.

output after each pass?

Would it be better to output by appending instead of overwriting? Every 10 minutes (after each pass) you could append to the file. As it is now, I have to wait a full hour to see if the scan is detecting anything.

Nothing found

I'm not finding anything with this. I assume it hasn't been updated to use the newer pgoapi (to handle the new encryption)

Linking to web.py

Anyway to link this program to an already made DB or have it link into a web.py you already have for outputting to a map?

thanks!

Multiple areas unsupported by check.py

I noticed that in creating several areas to scan within the config.json file and running search.py that the numbers I was seeing were not reasonable with what I would expect.

Indeed after adding additional print statements I discovered that ONLY the last rectangle was being output.

As a side note, I did have to reformat check.py to be compatible with python v3 by adding import from future print function to the beginning of the file and changing all print duples to functions notation.

Getting this error when trying to run (python spawn.py)

File "spawn.py", line 28, in <module> config = json.load(file) File "C:\Python27\lib\json\__init__.py", line 291, in load **kw) File "C:\Python27\lib\json\__init__.py", line 339, in loads return _default_decoder.decode(s) File "C:\Python27\lib\json\decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python27\lib\json\decoder.py", line 380, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting , delimiter: line 4 column 13 (char 49)

Any help?

Issues Reading username??

Hello, getting an error when scanning:

Traceback (most recent call last): File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner self.run() File "C:\Python27\lib\threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "C:\spawnScan-master\spawn.py", line 96, in worker api = pgoapi.PGoApi(provider=config['auth_service'], username=config['users'][wid]['username'], password=config['use rs'][wid]['password'], position_lat=0, position_lng=0, position_alt=0) TypeError: __init__() got an unexpected keyword argument 'username'

Am I filling out the un/pass array incorrectly? Can you provide an example?

Errors while running spawn.py

Getting an error while running on my raspberry pi. I thought running scan from 2 hours were no problem, reading the notes on the readme. I have been running a smaller scan with success.

This is the check.py result:

python check.py total of 2142 steps covering 20.5226852391 km^2 with 30 worker(s), doing 50 scans each, would take 2 hour(s)

When running the spawn.py I get many errors. See attached logfile.

What is the problem?
spawnscan.txt

No JSON object could be decoded

Hi,

Im relatively new to this. Created an account just so I could comment here. Have done a couple of different intro type python courses online before but I'm not a coder.

Anywho... Install seemed to work fine, most of the reqs were already installed from using other mapping tools.

After editing the config.json with my details, I tried running the html but couldn't see my work area. Thought I'd run the check.py anyway and this is the error I get:

error

I wasn't sure if I had screwed up the config.json somehow, but I tried copying another user's and also with the default (that comes the download, with just examples in place of real data) and I get the same error.

If anyone can point out where I'm going wrong, would be hugely appreciated.

PS - Really like where you are going with this app!

ServerSideRequestThrottlingException errors

I'm running the most recent git checkout of 0.2.2
I've tried running as ptc and as google accts
I keep getting this error:

total of 488 steps
with 1 workers, doing 50 scans each, would take 9 hours
worker 0 is doing steps 0 to 50
worker 0 is doing first pass
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "spawn.py", line 120, in worker
    doScan(wid,scans[i][0], scans[i][1], api)
  File "spawn.py", line 36, in doScan
    except  ServerSideRequestThrottlingException:
NameError: global name 'ServerSideRequestThrottlingException' is not defined

worker 0 is doing steps 50 to 100

in the config.json file i have:
"stepsPerPassPerWorker": 50,
"scanDelay": 10.5

Any ideas on how to resolve this? I've run the tos.py script first as well. Running on Debian and I've confirmed all requirements are met

continues mode with >5 workers

how about a mode where you add at least 5 accounts and just give a starting point. the script starts spiraling out with worker 1 and after a delay of (60 / n) with n=accs, starts worker 2 and so on...

Error getting map data

error getting map data for 36.2952244, -83.2833729533

I suspect this is server related but it spams this error when it occurs. Can it recover or should I give up and start over?

pgoapi issue in both tos.py and spawns.py

I'm getting errors when running both tos and spawns.

c:\Development\PokemonGo-Map\spawnscan\spawnScan>python tos.py
Traceback (most recent call last):
  File "tos.py", line 19, in <module>
    accept_tos(user['username'], user['password'])
  File "tos.py", line 14, in accept_tos
    req = api.create_request()
  File "c:\Development\PokemonGo-Map\spawnscan\spawnScan\pgoapi\pgoapi.py", line 127, in __getattr__
    raise AttributeError
AttributeError
c:\Development\PokemonGo-Map\spawnscan\spawnScan>python spawn.py
total of 810 steps
with 3 workers, doing 50 scans each, would take 16 hours
worker 0 is doing steps 0 to 50worker 1 is doing steps 50 to 100

worker 2 is doing steps 100 to 150
Exception in thread Thread-2:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
    self.run()
  File "C:\Python27\lib\threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "spawn.py", line 96, in worker
    api = pgoapi.PGoApi(provider=config['auth_service'], username=config['users'][wid]['username'], password=config['users'][wid]['password'], position_lat=0, position_lng=0, position_alt=0)
TypeError: __init__() got an unexpected keyword argument 'username'
Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
    self.run()
  File "C:\Python27\lib\threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "spawn.py", line 96, in worker
    api = pgoapi.PGoApi(provider=config['auth_service'], username=config['users'][wid]['username'], password=config['users'][wid]['password'], position_lat=0, position_lng=0, position_alt=0)
TypeError: __init__() got an unexpected keyword argument 'username'

MY config.json file (copy /paste - the only thing I've changed are the values for user/pw)

{
    "auth_service": "ptc",
    "users":[
        {"username": "user1", "password": "mypw1"},
        {"username": "user2", "password": "mypw2"},
        {"username": "user3", "password": "mypw3"}
    ],
    "work":[
        [-33.991970, 150.855422, -34.018581, 150.883960]
    ],
    "stepsPerPassPerWorker": 50,
    "scanDelay": 10.5
}

View Work - Draw Polygons

Would be a great enhancement to be able to draw the rectangle polygon bounds directly on the map, and have that mapped to the config (or an output that we can copy/paste into the config). An option to snap to edges so you avoid overlap would be great too. Thanks!

"Request for new Access Token failed! Logged out" and Spawn.py Hanging

I have tried searching the internet for a way to fix this and... well, there were a lot of pages with too many words so here we are.

I'm pretty new at Python/Pip/Git/etc., but I cannot for the life of me figure out what is wrong. I have gone through each of my accounts to ensure they are all running correctly with ToS accepted.

I get both of these errors, though it's a toss-up of which one appears. The top one gives a response, but the bottom one doesn't return any information. The command just hangs without putting out any information at all (I hope that makes sense). Help? Please?

Thanks!

Name@Nam-HP Letters ~/Desktop/Other/spawnScan-master
$ python spawn.py
2016-08-19 01:32:32,088 [ pgoapi] [ERROR] Request for new Access Token failed! Logged out...

Name@Nam-HP Letters ~/Desktop/Other/spawnScan-master
$ python spawn.py

Problem with starting

blad
Im weak at programing, but tried to start this program to help myself in the game, i writed login and pass from the game to the program but done obviously somthing wrong, can sombody help a noob to solve this, or give some advice where i can find a guide how to use this program.

Sorry for weak english, i know my problem is silly for most of you but pls help

i read probably all issues and dont understand what do you mean by running scan.py, when i click on map it writes that somthing went wrong

Install?

Hey mate
Ty for this first of all!
However im not sure how to install this
i did these things
Got clone
Changed api on map and view html file.
Chnaged config, with user name and cords.
now im kinda stuck xD

any help would be nice :-) i wanna test this out :-D

KeyErro: 'map_cells'

Just wanted to report an error that seems to still be occuring. First time reported here:
https://www.reddit.com/r/pokemongodev/comments/4uf1eh/spawnscan_spawn_point_finder/?st=ir43ggg7&sh=5e74f821

I am using commit-version: 4a6c8ab

got this output:

total of 72 steps, approx 16.0 seconds for scan
worker 0 is doing steps 0 to 72
worker 0 is doing first pass
worker 0 took 27.8112089634 secconds to do first pass now sleeping for 572.188791037
worker 0 is doing second pass
worker 0 took 626.596099854 secconds to do second pass now sleeping for 573.403900146
worker 0 is doing third pass
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "spawn.py", line 132, in worker
doScan(scans[i][0], scans[i][1], api)
File "spawn.py", line 54, in doScan
cells = response_dict['responses']['GET_MAP_OBJECTS']['map_cells']
KeyError: 'map_cells'

error getting map data

(env) G:\NESTTOOLS\spawnScan>python spawn.py
total of 2387 steps, approx 106.088888889 seconds for scan
worker 0 is doing steps 0 to 238
worker 1 is doing steps 238 to 477
 worker 2 is doing steps 477 to 716
worker 3 is doing steps 716 to 954
worker 4 is doing steps 954 to 1193
worker 5 is doing steps 1193 to 1432
worker 6 is doing steps 1432 to 1670
worker 7 is doing steps 1670 to 1909
worker 8 is doing steps 1909 to 2148
worker 9 is doing steps 2148 to 2387
worker 6 is doing first pass
worker 9 is doing first pass
worker 7 is doing first pass
worker 2 is doing first pass
worker 8 is doing first pass
worker 4 is doing first pass
worker 0 is doing first pass
worker 5 is doing first pass
worker 3 is doing first pass
worker 1 is doing first pass
error getting map data for *my coords*
error getting map data for**
error getting map data for**
error getting map data for**
error getting map data for**

ect
then
worker 5 took 315.842999935 seconds to do first pass now sleeping for 284.157000065
I get this the whole time, is this something that can be ignored?

Errors don't show associated account

This may seem trivial but can the code be modified to show what account is giving an error other than just a number? For instance show the actual account name so that it's easier to track down a troubled account.

Also I keep getting this error and don't know why

Could not retrieve player information, Waiting 11 seconds and trying again.

Import utils

$ python spawn.py
Traceback (most recent call last):
File "spawn.py", line 10, in
import utils
ImportError: No module named utils

Getting this error and don't know what to do, I know this isn't a support area but I don't know where else to ask.

Please remove .pyc files

My machine seems to want to re-write the .pyc files every time I run spawnScan, which makes pulling down changes via git inconvenient at best.

Since you're providing the .py files anyway, the .pyc files are redundant and shouldn't be included in the repository. It would be really helpful if you could remove the existing .pyc files and use a .gitignore to exclude them in the future.

No output files

After I ran my script for 11h, I fount out there are no output files. Are there hidden somewhere else than in the root directory?

viewwork doesn't display locations

Hi all,

I've edited the config.json file, and changed the API in viewwork.html to my google api key.

When I load viewwork (I've tried in chrome and ie), it doesn't show any sort of preview. From what I can tell in the file it should show a box around the locations I've selected...

My config.json is:

{ "auth_service": "ptc", "users":[ {"username": "blah", "password": "blah"} ], "work":[ [-33.996560, 150.866408, -34.006250, 150.883452], [-33.998322, 150.864867, -34.006460, 150.881034] ], "stepsPerPassPerWorker": 50, "scanDelay": 10.5 }

Command Line stuck at end of scan

Once the last account did the 6th pass, nothing happened. It stuck like that for hours until I closed it, and none of the jsons were changed.

ImportError: No module named xxhash

Fresh install of the latest master branch, and I get the following error:

C:\Users\i5-Desktop\Downloads\spawnScan-master\spawnScan-master>spawn.py
Traceback (most recent call last):
  File "C:\Users\i5-Desktop\Downloads\spawnScan-master\spawnScan-master\spawn.py", line 12, in <module>
    from pgoapi import pgoapi
  File "C:\Users\i5-Desktop\Downloads\spawnScan-master\spawnScan-master\pgoapi\__init__.py", line 50, in <module>
    from pgoapi.pgoapi import PGoApi
  File "C:\Users\i5-Desktop\Downloads\spawnScan-master\spawnScan-master\pgoapi\pgoapi.py", line 34, in <module>
    from pgoapi.rpc_api import RpcApi
  File "C:\Users\i5-Desktop\Downloads\spawnScan-master\spawnScan-master\pgoapi\rpc_api.py", line 47, in <module>
    from pgoapi.utilities import to_camel_case, get_time, get_format_time_diff, Rand48, long_to_bytes, generateLocation1, generateLocation2, generateRequestHash, f2i
  File "C:\Users\i5-Desktop\Downloads\spawnScan-master\spawnScan-master\pgoapi\utilities.py", line 30, in <module>
    import xxhash
ImportError: No module named xxhash

pip install xxhash yields all sorts of errors - assuming this is not how I resolve the issue. Any hints?

Check.py and Spawn.py different results

MichaelettisMBP:spawnScan-master mike$ python check.py
total of 962 steps covering 9.40537890166 km^2
with 384 workers, doing 50 scans each, would take 1.0 hours

MichaelettisMBP:spawnScan-master mike$ python spawn.py
total of 962 steps
with 384 workers, doing 50 scans each, would take 19 hours

Not sure what's happening but I don't think 19 hours makes sense.

Not quite finding all spawns in big areas

There are clear patterns where no pokemon spawns are found. This only happens in large areas

(See the following picture)
http://i.imgur.com/teU9V0O.jpg
There are some horizontal lines where no pokemons are found, even though there are definitely pokemons there.

I'm not sure what causes it, but I suspect that workers are jumping too far (from the far right to the far left) when a 'row' is completed- resulting in no pokemons found for a long duration.

One tiny problem

This isn't really an issue, probably something I'm doing wrong but after the hour or so of scanning, the new docs are created but when I click the chrome links there are no pokemon or spawns on the map, for any of the links. I got the API key and pasted it where it's supposed to go. Am I supposed to put the API key in config.json as well, if not where else am I going wrong? Thanks for anyone willing to help

IndexError

I can't seem to get past this IndexError, or find a solution for it. It happens if I run check.py or spawn.py.

$ python spawn.py Traceback (most recent call last): File "spawn.py", line 250, in <module> main() File "spawn.py", line 150, in main tscans = genwork() File "spawn.py", line 104, in genwork dlng = dlat / math.cos(math.radians((rect[0]+rect[2])*0.5)) IndexError: list index out of range
--edit--

I should add that I'm also running the latest version.

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.