Comment on Finding the best ticket price – Simple web scraping with PythonparentComments−danielforsythOP12yI am using 2.7.6−nivertech12yMaybe wrong BS version? $ sudo pip install BeautifulSoup Downloading/unpacking BeautifulSoup Downloading BeautifulSoup-3.2.1.tar.gz Running setup.py (path:/tmp/pip_build_root/BeautifulSoup/setup.py) egg_info for package BeautifulSoup Installing collected packages: BeautifulSoup Running setup.py install for BeautifulSoup Successfully installed BeautifulSoup Cleaning up...−danielforsythOP12yAh yes thats the problem, I am using beautifulsoup4==4.3.2.Try pip install beautifulsoup4−nivertech12yI found the problem. I think your listing ate '_'. It should be 'soup.find_all' instead of 'soup.findall' and 'link_end' instead of 'linkend'−danielforsythOP12yGood find! Fixed it, thanks!
Comments
I am using 2.7.6
Maybe wrong BS version?
Ah yes thats the problem, I am using beautifulsoup4==4.3.2.
Try pip install beautifulsoup4
I found the problem. I think your listing ate '_'. It should be 'soup.find_all' instead of 'soup.findall' and 'link_end' instead of 'linkend'
Good find! Fixed it, thanks!