![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python爬虫
qq_895043460
从未知到已知。
展开
-
python xpath 插件安装
1. 下载 xpath 插件 ,通常就是关注一个公众号,他们有插件的资源,然后下载下来即可。格式为:xxxxxxx.crx 文件 2. 拖动该文件到扩展程序中 ,如下图 3.如果报错 程序包无效: “CRX_HELPER_INVALID”,原因可能是chrome版本问题, linux解决方法如下。 > mv xxxxxx.crx xxxxxxx.zip > unzip -d xpath_file xxxxxx.zip > 在上图的扩展程序中...原创 2020-08-12 17:07:39 · 739 阅读 · 0 评论 -
python scrapy 爬虫框架安装问题总结一
0. workon scrapy_py3 (进入Python虚拟环境) 1. cd指定目录 2. scrapy startproject AdilCrawler 3. cd 到项目AdilCrawler下,执行scrapy genspider thousandPic www.58pic.com 4. cd spiders文件夹中, 编辑文件thousandPic.py。 5. 启动爬虫 scrapy crawl thousandPic (如果报错 builtins.ModuleNotFo...原创 2020-08-12 16:13:19 · 114 阅读 · 0 评论