1. 首页
  2. 数据库
  3. 其它
  4. 爬虫之——Beautiful Soup基础

爬虫之——Beautiful Soup基础

上传者: 2020-12-23 05:33:59上传 PDF文件 383KB 热度 23次
爬虫之——Beautiful Soup Beautiful Soup库也叫beautifulsoup4,还叫bs4 一、beautiful soup库的安装 win+R,输入cmd打开命令行 输入pip install beautifulsoup4 BeautifulSoup小测:以https://www.python123.io/ws/demo.html页面的代码为例 import requests url="https://www.python123.io/ws/demo.html" r=requests.get(url) r.text #输出html界面内容 demo=r.text f
下载地址
用户评论