1

I'm trying to create a web scraper project and I see from tutorials that I will need BeautifulSoup. I'm having trouble figuring out how to download it.

I'm using Windows 7, installed Python 2.7.9 and have successfully downloaded lxml through the exe file at Pypi. I saw the post: (How to install beautiful soup 4 with python 2.7 on windows) and tried following the steps, but can't get it to download even if I have the extracted .tar file of BS4.

Could someone give a guide of how to install BS4 please?

Community
  • 1
  • 1
TimTom
  • 97
  • 3
  • 12

1 Answers1

2

Do you have pip installed?

pip install beautifulsoup4 is probably the easiest way to install Beautiful Soup. If you have easy_install, easy_install beautifulsoup4 will also install it correctly.

Luke
  • 431
  • 1
  • 4
  • 15
  • I have those in my Scripts folder under Python27, I ran the easy_intstall-2.7.exe file. Do I then go into powershell and run easy_install beautifulsoup4? – TimTom Jun 11 '15 at 16:21
  • Just running easy_install-2.7.exe won't do anything. It's meant to be run from the command line, with arguments passed to it. Open up the command prompt/powershell and run `easy_install beautifulsoup4` – Luke Jun 11 '15 at 16:39