from google.appengine.api import urlfetch
class test(webapp.RequestHandler):
def get(self):
url = "http://www.google.com/"
result = urlfetch.fetch(url)
if result.status_code == 200:
self.response.out.write(result.content)
The code above can used to get the HTML file from a website. As it is so simple, we can find that the integrating websites of google.cn and baidu.cn is very easy in Python. Consequently, other integrating websites ideas can have their way to implement easily.