Quote:
Originally Posted by marbs
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.