Beautiful Soup Tutorial #1: Install BeautifulSoup, Requests & LXML

To start Web Scraping tutorials, the first thing to do is to install the 3 libraries: BeautifulSoup, Requests, and LXML. We will use PIP. Note that sudo might be required if you are on Linux or Mac.

  • pip install beautifulsoup4
  • pip install requests
  • pip install lxml

To make sure that things work fine, open a new Python file, write the following and run:

 

Try that on your machine and let me know if you have questions. Then, move to Beautiful Soup Tutorial #2: Extracting URLs

 

Installing BeautifulSoup, Requests, and LXML

 

No votes yet.
Please wait...

Leave a Reply