得到livescore beautifulsoup

时间:2016-01-21 16:13:10

标签: python beautifulsoup

我需要在网站下面获得实时分数(蓝色文字)

http://free.thscore.cc/asianbookie.htm

我写了下面的代码来打印html。但蓝色文字不存在。帮助我获得蓝色分数。

from bs4 import BeautifulSoup import urllib2 import urllib

import requests

r = requests.get("http://free.thscore.cc/asianbookie.htm")

data = r.text

soup = BeautifulSoup(data)

print(soup)

1 个答案:

答案 0 :(得分:1)

如果查看源代码,则会将一个CSS class="blue"应用于html元素。

HTML中没有任何内在因素决定颜色。