摘要: 【笔记】Python爬虫之Xpath、BS4解析 1、Bs4解析 #安装bs 4 import requests from bs4 import BeautifulSoup # 1 url="" resp=requests.get(url) # 2.将请求到的数据变成 BeautifulSoup 对象 sp=BeautifulSoup(resp.t 阅读全文
posted @ 2024-03-16 09:47 HanaKoo 阅读(57) 评论(0) 推荐(0) 编辑
@format