Thread: maya recipe
View Single Post
Old 10-20-2010, 09:35 AM   #28
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 marbs View Post
which i dont, i want someting like this:
print soup.item.previous.previousSibling
i want to go to the previous <tr> tag and then i want the sibling befor that.
not working.
Why not?

That's the question you're asking, and to answer it, you just print the entire soup, or the previous element, or the previous sibling to figure out where you've gone wrong. Be aware that you should look at the soup, and not just the page source. BeautifulSoup loads the page source into its database, and as it does that, it fixes errors and makes other modifications that may not be apparent in the page itself.
Starson17 is offline   Reply With Quote