How to display a page in my browser with python code that is run locally on my computer with "GAE" S

Posted by brilliant on Stack Overflow See other posts from Stack Overflow or by brilliant
Published on 2010-04-26T22:27:20Z Indexed on 2010/04/26 22:33 UTC
Read the original article Hit count: 175

Filed under:
|
|

When I run this code on my computer with the help of "Google App Engine SDK", it displays (in my browser) the HTML code of the Google home page:

from google.appengine.api import urlfetch
url = "http://www.google.com/"
result = urlfetch.fetch(url)
print result.content 

How can I make it display the page itself? I mean I want to see that page in my browser the way it would normally be seen by any user of the internet.

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about python