Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: beautiful soup get class info Date: Thu, 6 Mar 2014 20:58:12 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 15 Message-ID: References: NNTP-Posting-Host: panix1.panix.com X-Trace: reader1.panix.com 1394139492 23274 166.84.1.1 (6 Mar 2014 20:58:12 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 6 Mar 2014 20:58:12 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:67951 In teddybubu@gmail.com writes: > October 22, 2011 > date1 = soup.span.text > data=soup.find_all(date="value") Try this: soup.find_all(name="span", class="date") -- John Gordon Imagine what it must be like for a real medical doctor to gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.