Tag Archives: Web crawler

Beatifulsoup MAC installation solution Python 3

Methods a

    first from package website to download the latest version of the package of http://Index/software/BeautifulSoup bs4/download and then you will get a package named beautifulsoup4-4.6.0. Tar. Gz. Unzip to the desktop (for easy path entry) then open the terminal and start switching to the unzipped folder CD Desktopcd beautifulsoup4-4.4.1sudo python3./setup.py install

 
Method 2
The PIP is installed at the terminal first

sudo easy_install pip

Install bs4

pip install beautifulsoup4

This will cause an error and will be installed in python2.7 which is shipped with the system
 
The method of loading bs4 into Python3:

pip3 install beautifulsoup4

 
Interpreted by BeautifulSoup:

from bs4 import BeautifulSoup
soup = BeautifulSoup("<p>data<p>","html.parser")