from bs4 import BeautifulSoup
import requests
url = 'https://www.gurufocus.com/dcf/AMZN'
r = requests.get(url)
soup = BeautifulSoup(r.content)
div = soup.find(id='result')
print (div)
结果是:
<div id="result"></div>
实际上div
中存在一个值。
我对Python或BS知之甚少,无法获得该价值,并且希望获得帮助