如何从网站上检索实时值?

时间:2018-01-07 19:18:28

标签: python html python-3.x beautifulsoup

我正在尝试从网站上检索买入和卖出价值: https://www.zebpay.com/#chart

the buy and sell price under the banner zebpay

我在python中尝试了以下代码:

import requests
from bs4 import BeautifulSoup

page = requests.get('https://www.zebpay.com/#chart')
soup = BeautifulSoup(page.text, 'html.parser')

for item in soup.find_all(id = 'topsell'):
    print(item)

但我只得到这个结果:

<span id="topsell"></span>

当我检查元素时,我可以清楚地看到值:

enter image description here

我该如何解决这个问题?

0 个答案:

没有答案