Forums

My IP address keeps changing.

I'm scraping pastebin.com and rather than use API keys they have me to whitelist my scraper's ip address. The problem is that I get a different IP address each time I run my script and I have to approve it in my pastebin dashboard; this setup is too hands-on to be useful and I don't have an always on machine at home to host this on. Any advice?

Code on PythonAnywhere can run on any one of a number of servers, and these do change from time to time, so there's no fixes set that you could whitelist -- it's also worth noting that different people can be using the same IP address, so if you whitelist an IP, someone else could potentially be hitting pastebin from the same IP (depending on how they keep track of things).

If you need a private static IP, this help page has some suggestions on third-party tools you can use that might help.