python3 多线程 采集 xpath
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- '''Thread3 多线程测试采集''' import threading,time,queue,Mongo_utils,mysqlUtils,requests,json,os from lxml import html etree = html.etree exitFlag = 0 db = Mongo_ut...
阅读全文
posted @
2019-10-30 18:36
山高似水深
阅读(330)
推荐(0) 编辑
linux - 卸载python
摘要:2019年10月15日12:05:42[root@spider1 bin]# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps ##强制删除已安装程序及其关联 [root@spider1 bin]# whereis python |xargs rm -frv ##删除所有残余文件 ##xargs,允许你对输出执行其他某些命令 [root
阅读全文
posted @
2019-10-15 12:06
山高似水深
阅读(20598)
推荐(0) 编辑
python3.7 lxml4.2.5 etree xpath 的使用
摘要:看看自己的lxml版本是不是4.2.5 如果不是,安装4.2.5 pip install lxml==4.2.5 本测试只对4.2.5有效
阅读全文
posted @
2019-10-14 11:11
山高似水深
阅读(1232)
推荐(0) 编辑