{"action":"created","issue":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/644","repository_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map","labels_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/644/labels{/name}","comments_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/644/comments","events_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/644/events","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/644","id":171043564,"number":644,"title":"Multiple proxies","user":{"login":"erikssonk","id":1010036,"avatar_url":"https://avatars.githubusercontent.com/u/1010036?v=3","gravatar_id":"","url":"https://api.github.com/users/erikssonk","html_url":"https://github.com/erikssonk","followers_url":"https://api.github.com/users/erikssonk/followers","following_url":"https://api.github.com/users/erikssonk/following{/other_user}","gists_url":"https://api.github.com/users/erikssonk/gists{/gist_id}","starred_url":"https://api.github.com/users/erikssonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikssonk/subscriptions","organizations_url":"https://api.github.com/users/erikssonk/orgs","repos_url":"https://api.github.com/users/erikssonk/repos","events_url":"https://api.github.com/users/erikssonk/events{/privacy}","received_events_url":"https://api.github.com/users/erikssonk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/labels/awaiting%20review","name":"awaiting review","color":"006b75"},{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/labels/backend","name":"backend","color":"fbca04"},{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":87,"created_at":"2016-08-14T05:34:27Z","updated_at":"2016-09-02T13:14:10Z","closed_at":"2016-09-02T02:37:55Z","pull_request":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/pulls/644","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/644","diff_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/644.diff","patch_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/644.patch"},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n## Description\r\n* Add support for multiple proxies via --proxy \r\n* Add --proxy-timeout - Sets the timeout for checking proxy, default is 5 seconds\r\n* Add --proxy-display - Use with -ps Adds information about which proxy is used for each worker, default is index\r\n\t\t\r\n\t\tfull = display full proxy addres\r\n\t\tindex = display the current index for that proxy\r\n\r\nAt start it will check the entire proxy list for non-working proxies, this includes those who take to long or can't connect to Niantic via the proxy.\r\nWhen that happens, the proxy will be removed from the list and only working proxies will be used.\r\n\r\nIf proxy was configured but no proxies as working, it will exit the program with an error that no proxies is working.\r\n\r\nEach worker is assigned a specific proxy server to use.\r\n\r\nThe proxy servers are spread out evenly over the accounts.\r\n\r\n## Motivation and Context\r\n\r\nI wanted to spread my network load to avoid ip banning and not hammer Niantic's system with X amount accounts from the same ip\r\n\r\n## How Has This Been Tested?\r\n\r\nThis has been tested locally with mixed configurations in config.ini without a problem, traffic goes over select proxy server for that worker.\r\n\r\n## config.ini example\r\n\r\n\t\tproxy: [socks5://localhost:8123,socks5://localhost:8124] # List of proxy address\r\n\t\tproxy-timeout: 3 # Overrides the default timeout value of 5 seconds and uses 3 seconds instead\r\n\t\tproxy-display: full # Overrides the default value of index and prints full proxy address when using -ps\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- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n"},"comment":{"url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/comments/244371261","html_url":"https://github.com/PokemonGoMap/PokemonGo-Map/pull/644#issuecomment-244371261","issue_url":"https://api.github.com/repos/PokemonGoMap/PokemonGo-Map/issues/644","id":244371261,"user":{"login":"BestYohman","id":21953141,"avatar_url":"https://avatars.githubusercontent.com/u/21953141?v=3","gravatar_id":"","url":"https://api.github.com/users/BestYohman","html_url":"https://github.com/BestYohman","followers_url":"https://api.github.com/users/BestYohman/followers","following_url":"https://api.github.com/users/BestYohman/following{/other_user}","gists_url":"https://api.github.com/users/BestYohman/gists{/gist_id}","starred_url":"https://api.github.com/users/BestYohman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BestYohman/subscriptions","organizations_url":"https://api.github.com/users/BestYohman/orgs","repos_url":"https://api.github.com/users/BestYohman/repos","events_url":"https://api.github.com/users/BestYohman/events{/privacy}","received_events_url":"https://api.github.com/users/BestYohman/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T13:14:10Z","updated_at":"2016-09-02T13:14:10Z","body":"@erikssonk Well that worked but it's as I feared my proxy list sucks.  Need to find a better free list.  Thanks"}}
{"actor":{"display_login":"BestYohman"}}