View Single Post
Old 08-29-2011, 11:30 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by macpablus View Post
Any ideas?
Try this:
Code:
for section in soup.findAll('div', attrs={'class':'seccionx'}):
    section_title = self.tag_to_string(section.find('a'))
That should find the first <a> tag in the each div of class seccionx.

I looked at your links, but didn't actually see the structure you posted, so you'll have to test it yourself. Firefox and FireBug work well for this job.
Starson17 is offline   Reply With Quote