beautifulsoup4 用法一二

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

myresponse = requests.get(url,encoding='utf-8')

 

posted @ 2019-03-14 22:47  saintdingtheGreat  阅读(80)  评论(0编辑  收藏  举报