{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/997","repository_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map","labels_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/997/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/997/comments","events_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/997/events","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/997","id":173351297,"number":997,"title":"Add random delay, basic speed limit, randomize order of accounts, cycle accounts","user":{"login":"AngryRabbit1","id":21136546,"avatar_url":"https://avatars.githubusercontent.com/u/21136546?v=3","gravatar_id":"","url":"https://api.github.com/users/AngryRabbit1","html_url":"https://github.com/AngryRabbit1","followers_url":"https://api.github.com/users/AngryRabbit1/followers","following_url":"https://api.github.com/users/AngryRabbit1/following{/other_user}","gists_url":"https://api.github.com/users/AngryRabbit1/gists{/gist_id}","starred_url":"https://api.github.com/users/AngryRabbit1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngryRabbit1/subscriptions","organizations_url":"https://api.github.com/users/AngryRabbit1/orgs","repos_url":"https://api.github.com/users/AngryRabbit1/repos","events_url":"https://api.github.com/users/AngryRabbit1/events{/privacy}","received_events_url":"https://api.github.com/users/AngryRabbit1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-08-26T01:53:06Z","updated_at":"2016-09-04T20:40:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/997","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/997","diff_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/997.diff","patch_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/997.patch"},"body":"## Description\r\nAdded optional random delay (--random-delay) to command line so user can specify number of random seconds between 0 and argument to be added to scan delay each time the search worker thread sleeps in an attempt to avoid account bans.\r\n\r\nAdded optional rudimentary speed limit (--speed-limit) to command line options. Sleeps longer if next scan would go above the specified speed limit in a straight line.\r\n\r\nRandomized the order of accounts at startup so they don't always log in in the same sequence.\r\n\r\n[Edit: New Additions]\r\nAdded --max-speed-limit-sleep to prevent sleeping too long due to speed limit.\r\nAdded --max-accounts and --account-use-duration to facilitate swapping out of accounts every so often.\r\n\r\nUpdated version of [https://github.com/PokemonGoMap/PokemonGo-Map/pull/870](url) with a newer version of the main develop branch and added additional features not present in 870.\r\n\r\n## Motivation and Context\r\nAccounts have been getting banned the past few weeks creating a need to constantly make more accounts. I have tried a few things (e.g. longer scan delays, lower number of workers, etc) to no avail, this is the first solution I have found that seems to remedy the situation. This PR also implements a few other measures to avoid bans.\r\n\r\n## How Has This Been Tested?\r\nOn my own instance. @TackyBrad has tested the random delay as well.\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] My code follows the code style of this project.\r\n- [x] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly."},"comment":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/comments/244627368","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/997#issuecomment-244627368","issue_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/997","id":244627368,"user":{"login":"Mr-Groch","id":20594810,"avatar_url":"https://avatars.githubusercontent.com/u/20594810?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr-Groch","html_url":"https://github.com/Mr-Groch","followers_url":"https://api.github.com/users/Mr-Groch/followers","following_url":"https://api.github.com/users/Mr-Groch/following{/other_user}","gists_url":"https://api.github.com/users/Mr-Groch/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr-Groch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr-Groch/subscriptions","organizations_url":"https://api.github.com/users/Mr-Groch/orgs","repos_url":"https://api.github.com/users/Mr-Groch/repos","events_url":"https://api.github.com/users/Mr-Groch/events{/privacy}","received_events_url":"https://api.github.com/users/Mr-Groch/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T20:39:59Z","updated_at":"2016-09-04T20:39:59Z","body":"I have refactored speed limit and used it in PR #737. Hope you don't mind..."}}
{"actor":{"display_login":"Mr-Groch"}}