![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
clawer
icanactnow
将有限的精力投入到无限的热爱中...
展开
-
HTML 解析库
pyquery 使用 参考 from pyquery import PyQuery as pq from lxml import etree #四种创建对象的方法 doc1 =pq(etree.fromstring(' first section 1111 17-01-28 22:51 second section 2222 17-01-28 22:53 ')) doc2 = pq原创 2017-09-20 18:37:23 · 562 阅读 · 0 评论 -
xpath
简单实例 bookstore> book> title lang="eng">Harry Pottertitle> price>29.99price> book> book> title lang="eng">Learning XMLtitle> price>39.95price> book> bookstore>原创 2018-01-27 15:44:51 · 197 阅读 · 0 评论 -
scrapy
安装 python 2 python3 基本步骤 logging 使用 scrapy 与 mongodb 参考 官方文档1.0 官方文档0.24 安装 python 2 pip install scrapy python3 sudo apt-get install python-dev python-pip libxml2-dev libxslt1-原创 2018-01-25 14:28:38 · 197 阅读 · 0 评论