1

When I view the page source in my browser, the html I am after appears there. However, when I make a requests using python requests the html doesn't appear.

The url I'm trying to scrape is http://www.espn.com/nba/scoreboard/_/date/20161212, and the specific html I am after in the page is:

enter image description here

I'd like to get the tag . So far I've tried:

r = requests.get('http://www.espn.com/nba/scoreboard/_/date/20161212')
soup = BeautifulSoup(r.text,'html.parser')
b= soup.find(name = 'section',class_ = 'col-b')
print(b)

out:

NBA Scoreboard

Auto Update: On

Sponsored Headlines

as we can see,much part of tag was missed in the print,like tag

Saurav Rastogi
  • 9,575
  • 3
  • 29
  • 41
xingpei Pang
  • 1,185
  • 11
  • 15

0 Answers0