BeautifulSoup Scraping td & tr
问题 I am trying to extract the price data (high and low) from the 3rd table (corn). The code is return "None": import urllib2 from bs4 import BeautifulSoup import time import re start_urls = 4539 nb_quotes = 10 for urls in range (start_urls, start_urls - nb_quotes, -1): start_time = time.time() # construct the URLs strings url = 'http://markets.iowafarmbureau.com/markets/fixed.php?page=egrains' # Read the HTML page content page = urllib2.urlopen(url) # Create a beautifulsoup object soup =