嗨,我想知道如何使用beautifulsoup 来为它的时间刮美国银行。例如,如果网址是 (Shattuck_Ave_94704_BERKELEY_CA/bank_branch_locations/">http://locators.bankofamerica.com/locator/locator/2129_Shattuck _Ave_94704_BERKELEY_CA /bank_branch_locations/) 我怎样才能只提取小时数?下面是我最初的尝试,但它似乎什么也没返回。
page = urllib2.urlopen(url)
soup = BeautifulSoup(page.read())
hours = soup.find_all("div", class_="lobbyHours")
print hours