Forums

Non-whitelist external sites issues with a paid account

Greetings,

I recently signed up for a paid account and I'm still having difficulty connecting to non-whitelisted sites from the console. New to pythonanywhere, I'm not sure if this is intentional behavior, but I'm unable to do a simple wget, let alone run a script that uses requests & BeautifulSoup when called from the console. I was able to pull a non-whitelisted external site when doing a call from a Flask app though.

Examples... with http (cnn.com is just used as an example, I've tried a few different sites)

wget http://www.cnn.com

--2017-04-05 18:32:26-- http://www.cnn.com/ Resolving proxy.server (proxy.server)... 10.0.0.26 Connecting to proxy.server (proxy.server)|10.0.0.26|:3128... connected. Proxy request sent, awaiting response... 403 Forbidden 2017-04-05 18:32:26 ERROR 403: Forbidden.

http with no proxy flag... wget http://www.cnn.com --no-proxy

--2017-04-05 18:33:05-- http://www.cnn.com/ Resolving www.cnn.com (www.cnn.com)... 151.101.32.73 Connecting to www.cnn.com (www.cnn.com)|151.101.32.73|:80... failed: Connection refused.

With https... wget https://www.cnn.com

--2017-04-05 18:19:53-- https://www.cnn.com/ Resolving proxy.server (proxy.server)... 10.0.0.26 Connecting to proxy.server (proxy.server)|10.0.0.26|:3128... connected. Proxy tunneling failed: ForbiddenUnable to establish SSL connection.

With https... no proxy flag

wget https://www.cnn.com --no-proxy

--2017-04-05 18:20:01-- https://www.cnn.com/ Resolving www.cnn.com (www.cnn.com)... 151.101.32.73 Connecting to www.cnn.com (www.cnn.com)|151.101.32.73|:443... failed: Connection refused.

I tried this both in and outside of a virtual environment. I'm sure I'm missing something simple.

If you've only just upgraded, you need to close all your consoles and open new ones. Could that be it?

That was it. Thanks, harry.

:)