Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #67951

Re: beautiful soup get class info

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 <gordon@panix.com>
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 <lfanh4$mna$1@reader1.panix.com> (permalink)
References <e73d29eb-17bb-472e-bdc4-c38ca904c60f@googlegroups.com>
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

Show key headers only | View raw


In <e73d29eb-17bb-472e-bdc4-c38ca904c60f@googlegroups.com> teddybubu@gmail.com writes:

>  <span class="date">October 22, 2011</span>

> 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'.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

beautiful soup get class info teddybubu@gmail.com - 2014-03-06 12:22 -0800
  Re: beautiful soup get class info John Gordon <gordon@panix.com> - 2014-03-06 20:58 +0000
    Re: beautiful soup get class info teddybubu@gmail.com - 2014-03-06 13:38 -0800
      Re: beautiful soup get class info John Gordon <gordon@panix.com> - 2014-03-06 22:28 +0000
        Re: beautiful soup get class info teddybubu@gmail.com - 2014-03-06 17:37 -0800
          Re: beautiful soup get class info Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-07 01:48 +0000
  Re: beautiful soup get class info Christopher Welborn <cjwelborn@live.com> - 2014-03-11 21:04 -0500
  Re: beautiful soup get class info Peter Otten <__peter__@web.de> - 2014-03-12 08:36 +0100

csiph-web