logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

解析HTML—— BeautifulSoup和xPath的基本使用

Beautifulsoup和xPath的基本使用Beautifulsoup的基本使用导包:from bs4 import BeautifulSoup解析:soup1 = BeautifulSoup(html,'html.parser'),这里的html是一个字符串,一般都是response的text属性。find和find_allfind:例如tag = soup.fin...

#beautifulsoup#爬虫
到底了