![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
2c不高兴
一枚前端开发搬运工,面向api开发,百度谷歌搜索一键复制粘贴攻城狮
展开
-
python 爬虫(头像)
import re import os import requests global i i = 0 def get_one_page(url): response = requests.get(url) response.encoding = 'utf-8' html = response.text return html def get_urls(html): pattern = re.compile('href="(/touxiang/qinglv/.原创 2022-04-20 16:12:23 · 1482 阅读 · 0 评论 -
python 爬虫(表情包)
引入模块 import requests //用于请求网页 import re //正则表达式,用于解析筛选网页中的信息 要爬的网址 headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0' } response = requests.get('https://qq.yh31.com/zjbq/',headers=headers) .原创 2022-04-20 15:32:26 · 1551 阅读 · 0 评论