![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
zdx_tester
个人学习笔记,可能有些地方不对,多多指教!
展开
-
抓取百度热搜,并发送到邮箱
# -*- coding:utf-8 -*- import requests from bs4 import BeautifulSoup from sendEmail2 import SendQQEmail my_sender = 'xxxxxxxxx.com' # 发件人邮箱账号 my_pass = 'xxxxxxxx' # 发件人邮箱密码 my_user = 'xxxxxxxxxxx.com' # 收件人邮箱账号,我这边发送给自己 filename = '测试附件.jpg' filepath =原创 2021-09-03 10:27:22 · 915 阅读 · 0 评论 -
python获取json数据,快速生成excel
需要的python 安装包: pip install requests pip install pandas 一、同过requests 获取网页json数据 url = 'http://192.168.1.194:8090/pmshy/equipment/equipmentList.shtml' headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0',原创 2021-07-30 15:43:34 · 2041 阅读 · 7 评论