爬小说

https://cuiqingcai.com/1319.html 这是BeautifulSoup的详细用法

创建sp对象以后有个很简单的方法取出标签内容

sp=BeautifulSoup(html.text,'html.parser')

sp.标签名.string  #这里就取出了标签名

比起select  find_all find都好一些 不用自己去除标签了

你可能感兴趣的:(爬小说)