|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
想对网站https://webench.ti.com/power-des ... lator/customize/269 进行爬虫呢,得到电路的性能指标值。
下面是代码,但是返回了空值,不知道怎么修改呢。麻烦大神们帮帮忙
- import requests
- from bs4 import BeautifulSoup
- headers = {
- 'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36',
- 'Referer': 'https://webench.ti.com/power-designer/switching-regulator/customize/269'
- }
- url = "https://webench.ti.com/power-designer/switching-regulator/customize/269"
- r = requests.get (url , headers= headers )
- soup = BeautifulSoup(r.text, "html.parser")
- items =soup.find_all("mat-table", class_= 'mat-table')
- print(items)
复制代码 |
|