from bs4 import BeautifulSoup
from urllib.request import urlopen
quote_page = "http://mc.championdata.com/nrl"
page = urlopen(quote_page)
soup = BeautifulSoup(page, "html.parser")
# Take out the <div> of name and get its value
name_box = soup.find("")
#for example: soup.find("a", {"class": "price", "data-usd": True})['data-usd']
我是个初学者,但我想我明白你的要求了。您可以在python中使用BeautifulSoup和请求来完成它。像这样:
我不明白你到底在找什么。你知道吗
相关问题 更多 >
编程相关推荐