![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
FengerWU
这个作者很懒,什么都没留下…
展开
-
医院系统爬虫(1)
1,爬取多数据的时候会出现突然中断的问题尝试把UserAgent增多后排除使用方法from fake_useragent import UserAgent最好是下载后再安装,phpstrome安装会有bug使用时需要设置ua = UserAgent(use_cache_server=False) self.headers ={ 'User-Age...原创 2019-11-26 22:54:59 · 662 阅读 · 0 评论 -
Numpy下载并安装
关于安装numpy1,看自己的python版本numpy-1.17.4+mkl-cp37-cp37m-win_amd64cp后面的数字是对应相对的python版本2,根据自己的电脑的配置,对应下载32位和64位3,phpstrome下载不了pip如果没有更换阿里云源下载基本都会超时更换阿里云源的方法->设置阿里云pip源,加速pip更新速度首先在window的文件夹窗口输入...原创 2019-11-24 14:55:35 · 2401 阅读 · 0 评论 -
Xpath使用
# 安装支持解析html和XML的解析库# pip install lxml# form lxml import etreeimport requestsfrom lxml import etreeurl = "http://news.baidu.com"headers = { "User-Agent": "Opera/9.80 (Windows NT 6.0) Presto...原创 2019-11-08 17:45:15 · 103 阅读 · 0 评论