-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Proxy Support #3574
Comments
Correct me if I'm wrong, but a proxy only handles browser traffic. You want a VPN. There are free and paid ones and the bot works fine through a VPN. |
We had a PR that added proxy support to the bot so that you can use a VPN. It had a bug and was reverted. Perhaps @alecuba16 can re-add that functionality, or someone can utilize the code he wrote the first time to implement this feature. |
There are HTTP and Socks proxies. HTTP proxies tunnel HTTP/HTTPS requests only while socks can tunnel all requets. But isn't Pokemon Go just using HTTP(S) requests anyways? A VPN would be overkill. There aren't that many VPNs so ppl would end up having the same and getting banned anyways, there are far more HTTP/SOCKS proxies out there. |
I think I have IP banned because I can't login with my google account: but with my PTC account, it's work fine... |
@RedViper9 No, proxies handle all sorts of traffic, depending on their type. Most Socks proxies handle a lot more then just your browser traffic. |
@Lordedi When you're IP banned, the bot it's just walking but no pokemon appear. |
@ale-batt maybe but since yesterday I cannot resolve my problem :/ |
Are you using the |
Yes |
the last update ? |
Yes 💃 |
hi how can i use vpn/proxy to connect bot ? |
@Lordedi So no idea... Try a different config file :/ |
@ale-batt Yes, strange because ptc account works fine but not google mh |
I am running the Bot on a Ubuntu VPS and it works perfect for an Hour or two..then it looks like i Is there a known work-around for using a proxy with the Bot ? |
Set an environment variable for http_proxy and just run normally. That shell window will be proxied to the IP till you close it.
|
Will there be support for SOCKS Proxies as well ? |
Where this variable has to be inserted?
|
You dont have to "insert it", just type this command before launching the bot via your command prompt.
|
If you need socks, you can use proxychains(4). |
@jalliance problem with that is it can only be used for one bot. I suppose the idea of proxying is meant for multiple. |
Tor support has been added to the docker implementation of the bot #4108 Although it may not be the final solution you're after, it's a step in the right direction |
The way it is done in #4108 is just to set the environment variables for the bot so the requests library uses the proxy. http://docs.python-requests.org/en/master/user/advanced/#proxies I'm sure you could use this for any proxy you wanted. As the pgoapi is a different project and we cannot give it the proxies, the environment variables was the only way I could find to do this. |
I have created a plugin that adds proxy support by finding available proxies based on your players latitude and longitude position. Hope it helps: https://github.com/br0kenb1nary/PogoPlugin |
@br0kenb1nary do you mind creating a pull request or is this the first candidate for the plugins @TheSavior - FYI |
Created a pull request. The plugin is stable however being that it is Shell based on not Python based I am not sure what you want included to support the Plugin format laid out here: https://github.com/TheSavior/test-pgo-plugin Do you plan on having a plugin branch? Not sure which to use for the pull |
@TheSavior care to elaborate, are we going to allow plugin PRs against dev? or what was the plan to show users the available plugins? |
Perhaps a master plugin repo list with array: name, git URL and init file. Clone to subdirectory on initial load and run the init file as: if sh then if Python then Keeps everything independent and avoids cross branch conflicts |
The goal of plugins is that end users can add additional tasks from repos that other people create than what is in this repo. They can install the ones they want by adding them to their config. They would not be installed automatically or for all users. However, what you have created isn't a plugin in the pokemongo-bot sense. It is just a run script. I think if we were to accept a PR adding this functionality to core, it would probably be some change to When I say exactly, I think I mean exactly that PR + whatever fix is needed that caused the failures. What the failures were, I'm not sure I remember anymore. |
Idk how to request that you add proxy support so uhm here?
The text was updated successfully, but these errors were encountered: