None on Linux but found on Windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi
I use beautifulsoup4=
On Windows I have Python 2.7.8 and on Linux I have 2.7.6. I spent 30 minutes, trying to install python 2.7.8 or latest version of Python on Ubuntu but I couldn't...
My script parses a html page. The element is found on Windows, but isn't found on Linux (return None). This bug is quite rare. The script works with lots of pages but with about 5% of the pages..it doesn't work.
from bs4 import BeautifulSoup
f = open('page.
html = f.read()
f.close()
soup = BeautifulSoup(html)
print soup.find('div', id='BidsHistory1')
The html :
...
...
<a name="Questions
</ul>
</div>
<div class="AI_slide" id="it_ctrl_Bids">
<table class="
...
...
Thank you
"If your script works on one computer but not another, it’s probably because the two computers have different parser libraries available. For example, you may have developed the script on a computer that has lxml installed, and then tried to run it on a computer that only has html5lib installed."
http:// www.crummy. com/software/ BeautifulSoup/ bs4/doc/ #other- parser- problems
If this does not describe your problem, please reopen this bug and mention which parser you are using to parse the page.