modrzew / pokeminer

Pokemon location scraper
MIT License
220 stars 62 forks source link

Running two instances of Pokeminer and feeding data to the same map? #242

Open gatomiaurex opened 7 years ago

gatomiaurex commented 7 years ago

So with Niantic banning accounts left and right I found myself with 30 out of my 74 accounts banned so I want to know if I can like

1.- run the workers and the servers covering 1 part of my city 2.- copy the pokeminer folder 3.- run another instance of workers running another part of my city

Basically my city has an irregular shape and some of the workers are scanning empty things so I am wasting workers and this is no time to do that.

untitled

amistad18 commented 7 years ago

Check this out - https://github.com/modrzew/pokeminer/pull/100 , and here fresh PR https://github.com/modrzew/pokeminer/pull/238 ... there isn't much changes there, so you will be able to do them manually. Also remember to update config file to set disabled workers there.

gatomiaurex commented 7 years ago

I tried that a while ago and it only disables the workers and doesn't make them available for scanning another locations, am I right? Or maybe I misunderstood the commit?

modrzew commented 7 years ago

@gatomiaurex yes, that's possible. You can have any number of pokeminers feeding the same database. Be sure to use MySQL instead of SQLite, though.

You can also define a large rectangle and disable some of the workers using PRs @amistad18 mentioned.

gatomiaurex commented 7 years ago

I was about to try that but as soon as I opened the workers 7 more accounts got banned, I am using 10 steps per worker and 12 scan delay, did Niantic changed something? The accounts are getting banned faster than before. :/

r0bodog commented 7 years ago

How would I go about changing to MySQL from your code?