📜  使用 beautifulsoup - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:18.736000             🧑  作者: Mango

代码示例1
#start


from bs4 import BeautifulSoup
import requests

req = requests.get('https://www.slickcharts.com/sp500')
soup = BeautifulSoup(req.text, 'html.parser')