Python-beautifulsoup Installation

Source: Internet
Author: User

BeautifulSoup 3.x

1. Download BeautifulSoup.

[Email protected] python]$ wget http://www.crummy.com/software/BeautifulSoup/download/3.x/BeautifulSoup-3.2.1.tar.gz

2. Unzip.

3. Install the BeautifulSoup module.

[[Email protected] python]$ CD Beautifulsoup-3.2.1[[email protected] beautifulsoup-3.2.1]$ su-c ' python setup.py install ‘

4. Verify that the BeautifulSoup module is imported and the installation is successful without error.

[Email protected] ~]$ Pythonpython 2.6.6 (r266:84292, May from  beautifulsoup import BeautifulSoup

BeautifulSoup 4.x

1. Download BeautifulSoup.

[Email protected] python]$ wget http://www.crummy.com/software/BeautifulSoup/bs4/download/4.4/beautifulsoup4-4.4.1.tar.gz

2. Unzip.

[Email protected] python]$ tar zxvf beautifulsoup4-4.4.1.tar.gz

3. Install the BeautifulSoup module.

[[Email protected] python]$ CD Beautifulsoup4-4.4.1[[email protected] beautifulsoup4-4.4.1]$ su-c ' python setup.py insta ll

4. Verify that the BeautifulSoup module is imported and the installation is successful without error.

From BS4 import BeautifulSoup

Others

BeautifulSoup Home: http://www.crummy.com/software/BeautifulSoup/

Python-beautifulsoup Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.