Skip to site navigation (Press enter)

BeautifulSoup - extract the

gcmartijn Mon, 18 Jun 2007 11:46:25 -0700

I'm trying to extract something like this:

<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=7,0,19,0" width=640 height=400>
<param name=movie value=url>
<param name=quality value=high><param name=SCALE value=showall>
<embed src=url quality=highpluginspage=http://www.macromedia.com/go/
getflashplayer type=application/x-shockwave-flash width=640 height=400
bgcolor=#000000 scale= showall>
</embed>
</object>

====
I don't know how I can get the param

# below don't work
    for test in soup.fetch('object'):
        print test # nothing

# nothing
print soup.findAll('param',{'name':'movie'})

# nothing
print soup.findAll('object')

Is it possible with BeautifulSoup to extract the object tag with his
child param ?
I have made everything in BeautifulSoup so I hope its possible :S

Thanks anyway,
GCMartijn

-- 
http://mail.python.org/mailman/listinfo/python-list
  • Previous message
  • View by thread
  • View by date
  • Next message
  • BeautifulSoup - extract the <object tag gcmartijn
    • Re: BeautifulSoup - extract the <object t... Marc 'BlackJack' Rintsch

Reply via email to

The Mail Archive
  • The Mail Archive home
  • python-list - all messages
  • python-list - about the list
  • Expand
  • Previous message
  • Next message
  • The Mail Archive home
  • Add your mailing list
  • FAQ
  • Support
  • Privacy
  • 1182192028.173189.168910@u2g2000hsc.googlegroups.com