![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
wei_xin1234567
这个作者很懒,什么都没留下…
展开
-
beautifulsoup库的使用笔记
安装 pip install beautifulsoup4 #安装bs4 pip install lxml #安装lxml pip list #查看 使用 导入 from bs4 import BeautifulSoup #导入 soup = BeautifulSoup(html_doc, 'html.parser') #创建对象,第一个参数文档字符串,第2个参数解析器 soup =...原创 2020-04-03 15:08:10 · 72 阅读 · 0 评论 -
python多线程爬虫美女福利图片
方法 代码 import requests import threading import os from queue import Queue from bs4 import BeautifulSoup flag = True index = 1 headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; ...原创 2020-03-12 15:47:11 · 688 阅读 · 0 评论 -
python利用xpath解析网页
需要库 pip install requests pip install lxml原创 2020-02-17 13:37:41 · 279 阅读 · 0 评论