![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
木槿花better
这个作者很懒,什么都没留下…
展开
-
python爬虫入门xpath
import requestsimport csvimport osfrom lxml import etreedef getHtml(name, page): url = "https://search.jd.com/Search?" parmas = {"keyword": name, "enc": "utf-8", "page": page} heade...原创 2019-11-29 11:17:19 · 333 阅读 · 0 评论 -
python爬虫入门
import reimport requestsdef fun(first): #http://www.mmonly.cc/gqbz/list_41_345.html url = "http://www.mmonly.cc/gqbz/list_41_"+first+".html"#10-70 1-7 res = requests.get(url=url) ht...原创 2019-11-28 18:37:53 · 335 阅读 · 0 评论