Forums

HTTP requests error even for whitelist sites

This just started working again. I can't delete this post though.

Never mind! The more threads the merrier!

Hello,

This doesn't work for me.

Hi csc309a2, what exactly doesn't work for you? We did have a hiccup on the proxy server last night, but that's cleaned up now... Maybe it's worth re-trying whatever you were having a problem with yesterday?

This is just a snippet of my code:

from urllib import urlopen

data1 = urlopen(url1).read()

http://csc309a2.pythonanywhere.com/ My site reads the text from a url and counts the most frequent words in them, and when I try a url from the whitelist the words are always the same with (error, url, method, glenn-liveproxy-1, etc.). So I'm assuming without actually reading the full error that it's not working.

Right. urllib doesn't handle HTTPS for proxies well. Try switching to urllib2, or the wonderful requests...

Okay, well that worked. Thanks.

Great!