![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
围观的群众
这个作者很懒,什么都没留下…
展开
-
requests的content与text导致lxml的解析问题
使用requests获取了新浪微博的源代码,通过lxml库的etree.HTML来处理一段网页源代码,从而生成一个可以被xpath解析的对象。 selector = etree.HTML(html) 遇到报错: selector = etree.HTML(html) File "lxml.etree.pyx", line 2953, in lxml.etree.HTML (src\转载 2015-11-11 21:15:52 · 514 阅读 · 0 评论 -
Mac下Python与Mysql链接
114down vote Here is the tale of my rambling experience with this problem. Would love to see it edited or generalised if you have better experience of the issue... apply a bit of that SO ma转载 2015-11-11 22:16:17 · 438 阅读 · 0 评论