Web Scraping with Python: BeautifulSoup, Requests & Selenium

Web Scraping with Python: BeautifulSoup, Requests & Selenium
Web Scraping and Crawling with Python: Beautiful Soup, Requests & Selenium

Web Scraping (also termed Screen Scraping, Web Data Extraction, Web Harvesting, etc.) is a technique for extracting large amounts of data from websites  and save the the extracted data to a local file or to a database.

In this course, you will learn how to perform web scraping using Python 3 and the Beautiful Soup, a free open-source library written in Python for parsing HTML.

We will use lxml, which is an extensive library for parsing XML and HTML documents very quickly; it can even handle messed up tags. We will also be using the Requests module instead of the already built-in urllib2 module due to improvements in speed and readability.

Finally, we will use Selenium alongside Beautiful Soup to crawl AJAX & JavaScript driven pages.

The course cover the following topics: accessing web pages programmatically; scraping web pages to extract the required data using Beautiful Soup to parse web pages; interacting with web pages to do different things with them programmatically; and using Selenium for web scraping and when we need it.

By the end of this course, you will be able to understand how websites and servers function, diverse data extraction techniques, and methods of handling and organizing data.

This Web Scraping course covers the following topics:

  • Basic review of data structures (Lists, Dictionaries, Tuples, File Handling)
  • List, dictionaries, tuples comprehensions, inline if else statements
  • Intro on how websites are hosted on servers
  • Basic calls to the server (GET, POST methods)
  • Basic review of HTML and CSS
  • Intro to Requests Module and BeautifulSoup Module
  • Learning how to parse HTML using BeautifulSoup
  • Assignment Solution of Assignment
  • Learning filtering elements using BeautifulSoup and navigating the Parse Tree
  • Project
  • Project Discussion
  • Introduction to JavaScript and AJAX
  • Introduction to selenium and the need for it
  • Selecting elements using selenium
  • CSS selectors
  • Xpath selectors
  • Navigating pages using selenium
  • Project
  • Project Discussion


The Ultimate Python Programming Tutorial

Learn Python Through Exercises

The Python Bible™ | Everything You Need to Program in Python

Learn the essentials of Python and ArcGIS's arcpy

Introduction to Python for Beginners

Deep Learning Prerequisites: Logistic Regression in Python