modrzew / pokeminer

Pokemon location scraper
MIT License
220 stars 62 forks source link

Get information about banned accounts #258

Open and7ey opened 7 years ago

and7ey commented 7 years ago

How could I get information from the pokeminer if some of my accounts are banned? Can I see it from the log? What pokeminer does with banned accounts (use another account instead? stop scanning account's area? something else)?

If I need to react somehow, where could I add e-mail notification sending? Which file & line to look at? Is it about pgoapi_exceptions.AuthException?

gunawanputra commented 7 years ago

Well I have a PR about this but don't get any response yet.

Right now what you can do is look for 'Account banned' in the log for possibility that your accounts are permanent banned. For soft ban (IP ban?) you can look for 'Point processed, 0 Pokemons and 0 forts seen!' in the log. If the result still same after visiting multiple points, your accounts are soft banned.

When an account is soft banned, get_map_objects response won't contain any pokemon nor forts data, thus make a "Point processed, 0 Pokemons and 0 forts seen!" result. Of course it could be a normal result when a cell really don't have any pokemon nor forts.

and7ey commented 7 years ago

I need some automated monitoring (btw, not only about banned accounts - for ex., when niantic changed something in API and my pokeminer version stopped working), I can not look at the log each minute/hour/day.

Where can I see what you did in your PR? How it supposed to work there?

gunawanputra commented 7 years ago

It's PR #249.