【发布时间】:2015-09-07 19:35:02
【问题描述】:
在这段代码中,
import lxml.html as ht
page=ht.parse("http://doc.scrapy.org/en/latest/_static/selectors-sample1.html")
我想将 html 页面保存为特定路径/文件夹中的 html 文件。我该怎么做?
【问题讨论】:
-
如果只想下载保存,为什么还要用
lxml解析呢?... -
也许我想在保存之前稍微处理一下 :)
标签: python python-2.7 lxml