我有这个代码:
url = "http://www.padtube.com/Audio-Music-Editor/10-75359.html"
pageurl = urllib.urlopen(url)
soup = BeautifulSoup(pageurl)
for table in soup.select("table#product-quickfacts-table"):
print table.find('meta',{'itemprop':'datePublished'})
当我运行这段代码时,它给了我这个输出:
<meta content="2012-03-01T00:00:00-05:00" itemprop="datePublished"/>
我怎样才能只取日期?