在谷歌应用程序引擎我发现这个代码是抓取网页的网址:
from google.appengine.api import urlfetch
url = "http://www.google.com/"
result = urlfetch.fetch(url)
if result.status_code == 200:
doSomethingWithResult(result.content)
这是fecth该网页的HTML源代码正确的代码? 请问结果变量包含HTML SORCE http://www.google.com/ ? 如果是的话,Python的命令,我应该以显示HTML源代码在这里使用的,而不是doSomethingWithResult(result.content)? 打印结果似乎并没有被正确的方式。