Friday, July 5, 2013

How to install Beautiful Soup or BS4 on Windows?

BeautifulSoup is a Python module which is meant for web scraping. That is, using Python, you can fetch an html webpage (using a module such as urllib2), and then obtain meaningful information out of the html file (using the BeautifulSoup module).

Here are the steps to download and install BeautifulSoup on Windows. It assumes you have already installed python and you know how to use an archiving tool such as 7-zip.

1) Download the BeautifulSoup compressed file from the below link:

In my setup, I have downloaded a file named beautifulsoup4-4.2.1.tar.gz.

2) Extract the archive using a tool such as 7-zip. Once you have extracted the files, open cmd prompt, and go to directory named beautifulsoup4-4.2.1

3) Run the following command to install BeautifulSoup
C:\>python install

4) Test the installation with this command :
>>>from bs4 import BeautifulSoup

If you see the python prompt (>>>) in the next line without any errors, then it means BS4 is successfully installed.

For detailed coverage, check out this book : Getting Started with Beautiful Soup


Atul Gupta said...

Very simple instructions given here, went thru like a breeze :)

thyag.js said...

Thanks Atul!

Neo Gas Wallet said...

To convert Bitcoin into cash, look for a Bitcoin exchange that will allow you to sell your Bitcoin at a reasonable price, for your preferred local currency (such as pesos, dollars, or euros). ... Whether or not the exchange supports your preferred currency, and your preferred method of receiving your cash.
neo gas wallet

Renith Harsan said...

It has been simply incredibly generous with you to provide openly what exactly many individuals would’ve marketed for an eBook to end up making some cash for their end, primarily given that you could have tried it in the event you wanted oracle training in bangalore.

Saroj Mishra said...

Thanks for sharing such a good information about money making.Best Cryptocurrency Trading Platform