beautifulsoup4 用法一二

  • 声明一个beautifulsoup4对象
bs = (
    url,//路由
    html_parser,//解析html代码
    encoding//编码
)
//另一种请求解析方法
import requests

myresponse = requests.get(url,encoding='utf-8')
原文地址:https://www.cnblogs.com/saintdingspage/p/10534178.html