I've got this code to get HTML pages:
from urllib import urlopen
def getPage(page):
return urlopen(page).read()
newPage = getPage("http://plus.google.com/u/0/112100293022971160781/plusones")
print newPage
I'm trying to get the list of plusones from my Google plus account (and then will be turning it into a RSS feed so that I can incorporate into my blog), but I'm getting an error:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!-- %l body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; float: right; } --></style> </head><body> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr> <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="https://plus.google.com/u/0/112100293022971160781/plusones">https://plus.google.com/u/0/112100293022971160781/plusones</a></p> <blockquote id="error"> <p><b>Unsupported Request Method and Protocol</b></p> </blockquote> <p>Squid does not support all request methods for all access protocols. For example, you can not POST a Gopher request.</p> <p>Your cache administrator is <a href="mailto:webmaster%W">webmaster</a>.</p> <br> </div> <hr> <div id="footer"> <p>Generated Wed, 18 Jul 2012 12:48:46 GMT by giles-liveproxy (squid/2.7.STABLE9)</p> <!-- ERR_UNSUP_REQ --> </div> </body></html>
Is there any way around this on this platform?