Online Course
Web Scraping and API Fundamentals in Python

Master web data extraction with Python: Harness Web Scraping and APIs

4.8

862 reviews on
14,076 students already enrolled
  • Institute of Analytics
  • The Association of Data Scientists
  • E-Learning Quality Network
  • European Agency for Higher Education and Accreditation
  • Global Association of Online Trainers and Examiners

Skill level:

Basic

Duration:

4 hours
  • Lessons (4 hours)
  • Practice exams (23 minutes)

CPE credits:

7
CPE stands for Continuing Professional Education and represents the mandatory credits a wide range of professionals must earn to maintain their licenses and stay current with regulations and best practices. One CPE credit typically equals 50 minutes of learning. For more details, visit NASBA's official website: www.nasbaregistry.org

Accredited

certificate

What you learn

  • Master API fundamentals and Python’s requests for web data collection.
  • Learn to extract website data using Beautiful Soup and requests-HTML.
  • Acquire HTML and CSS basics to support effective web scraping.
  • Handle JavaScript-generated content and common roadblocks.
  • Scrape third-party data ethically and in compliance with legal standards.

Topics & tools

PythonTheoryProgrammingJupyterAPIsWeb ScrapingHTMLBeautifulsoupIndustry Specialization

Your instructor

Course OVERVIEW

Description

CPE Credits: 7 Field of Study: Information Technology
Delivery Method: QAS Self Study
Web Scraping and API Fundamentals in Python offers an introduction to the techniques of data extraction from the web. In this course, you will learn how to use one of the most powerful tools on the Internet – APIs. We will also discuss in depth how to obtain information directly from websites using the Beautiful Soup Python package. There will be a short HTML crash course for those not familiar with it. Finally, we will introduce the Requests-HTML package in order to extract dynamically generated JavaScript content.

Prerequisites

  • Python (version 3.8 or later), pandas library, and a code editor or IDE (e.g., Jupyter Notebook, Spyder, or VS Code)
  • Basic familiarity with Python programming is required.

Advanced preparation

Curriculum

55 lessons 47 exercises 3 exams
  • 1. Introduction to the course
    10 min
    In this first section, we will discuss what the course covers, why you need to learn Web Scraping and give you some notes on the ethics of scraping.
    10 min
    In this first section, we will discuss what the course covers, why you need to learn Web Scraping and give you some notes on the ethics of scraping.
    What does the course cover Free
    What is Web Scraping Free
    Exercise Free
    Ethics of Scraping Free
    Exercise Free
  • 2. Setting Up the Environment
    2 min
    In this part of the course, we will explain to you how to set up Python 3 and then load up Jupyter. We’ll also show you what the Anaconda Prompt is and how we use it to download and import new modules.
    2 min
    In this part of the course, we will explain to you how to set up Python 3 and then load up Jupyter. We’ll also show you what the Anaconda Prompt is and how we use it to download and import new modules.
    Setting up the Environment Free
    Installing the Necessary Packages Free
  • 3. Working with APIs
    47 min
    Here we will introduce what APIs are and how to use them. In order to do that, we will discuss the popular data exchange format JSON, as well as HTTP requests and the Python library to submit them – ‘requests’. At the end of the section we will show you how to deal with an API that requires a registration.
    47 min
    Here we will introduce what APIs are and how to use them. In order to do that, we will discuss the popular data exchange format JSON, as well as HTTP requests and the Python library to submit them – ‘requests’. At the end of the section we will show you how to deal with an API that requires a registration.
    API overview Free
    Exercise Free
    HTTP requests GET and POST requests Free
    Exercise Free
    JSON preferred data exchange format for APIs Free
    Exercise Free
    Exchange rates API GETting a JSON response Free
    Exercise Free
    Incorporating parameters in a GET request Free
    Exercise Free
    Additional API functionalities Free
    Exercise Free
    Creating a simple currency converter Free
    iTunes API Free
    Homework Free
    Exercise Free
    Homework - 2 Free
    iTunes API Structuring and exporting the data Free
    Exercise Free
    GitHub API Pagination Free
    Exercise Free
    EDAMAM API Initial setup and registration Free
    Exercise Free
    EDAMAM API Sending a POST request Free
    Exercise Free
    Downloading files with Requests Free
  • 4. HTML overview
    38 min
    Web Scraping relies on extracting information from the source code of webpages. Thus, a general understanding of HTML is required. This section is a short crash course for those that are not familiar with HTML. It is meant as an intuitive look into the basics, not a comprehensive guide.
    38 min
    Web Scraping relies on extracting information from the source code of webpages. Thus, a general understanding of HTML is required. This section is a short crash course for those that are not familiar with HTML. It is meant as an intuitive look into the basics, not a comprehensive guide.
    What is HTML?
    Exercise
    Structure of HTML
    Exercise
    Syntax of HTML. Tags
    Exercise
    Tag attributes
    Exercise
    Popular tags
    Exercise
    CSS and JavaScript
    Exercise
    Character encoding
    Exercise
    XHTML and code style
    Exercise
    Practice exam
  • 5. Web Scraping with Beautiful Soup
    50 min
    After familiarizing with HTML, we are ready to delve into the Web Scraping itself. We will now introduce the “Beautiful Soup” package and explore its capabilities.
    50 min
    After familiarizing with HTML, we are ready to delve into the Web Scraping itself. We will now introduce the “Beautiful Soup” package and explore its capabilities.
    Introduction to the Beautiful Soup package
    Workflow of Web Scraping
    Exercise
    Setting up your first scraper
    Searching and navigating the HTML tree
    Exercise
    Searching the HTML tree by attributes
    Exercise
    Extracting data from the HTML tree
    Extracting text from an HTML tag
    Exercise
    Practical example dealing with links
    Homework BeautifulSoup Section 1
    Extracting data from nested HTML tags
    Scraping multiple pages automatically
  • 6. Practical project: Scraping Rotten Tomatoes
    27 min
    Now that we’ve seen what Beautiful Soup can do, we will devote this section to practicing our newly formed skills. We are going to obtain information about movies from a ‘Rotten Tomatoes’ rank list.
    27 min
    Now that we’ve seen what Beautiful Soup can do, we will devote this section to practicing our newly formed skills. We are going to obtain information about movies from a ‘Rotten Tomatoes’ rank list.
    Setting up your scraper
    Extracting the title and year of each movie
    Homework BeautifulSoup Secion 2 - Score
    Extracting the rest of the information
    Homework BeautifulSoup Secion 2 - Rest
    Dealing with the cast of the movies
    Storing and exporting the data in a structured form
    Practice exam
  • 7. Scraping HTML tables
    7 min
    In this short section, we will discuss an easy way to scrape HTML tables.
    7 min
    In this short section, we will discuss an easy way to scrape HTML tables.
    Scraping HTML tables with the help of Pandas
    Scraping Steam
  • 8. Common roadblocks when scraping
    13 min
    Although we have done a decent amount of scraping so far in the course, this is one of those topics that can depend very much so on the website we choose. Different websites present specific problems. Thus, in this section, we will discuss what are the most common problems that you will have to deal with and give you solutions and workarounds.
    13 min
    Although we have done a decent amount of scraping so far in the course, this is one of those topics that can depend very much so on the website we choose. Different websites present specific problems. Thus, in this section, we will discuss what are the most common problems that you will have to deal with and give you solutions and workarounds.
    Common roadblocks when Web Scraping
    Exercise
  • 9. The requests-html package
    26 min
    Here, we will introduce another Web Scraping package – ‘Requests-HTML’. We are doing it because it has one big advantage over Beautiful Soup – the ability to execute JavaScript. Thus, this allows us to extract dynamically generated content which is exactly what we will do.
    26 min
    Here, we will introduce another Web Scraping package – ‘Requests-HTML’. We are doing it because it has one big advantage over Beautiful Soup – the ability to execute JavaScript. Thus, this allows us to extract dynamically generated content which is exactly what we will do.
    Introduction to the requests-html package
    Exploring the capabilities of requests-html for Web Scraping
    Searching for text
    CSS selectors
    Exercise
    Scraping SoundCloud
    Scraping JavaScript
  • 10. Course exam
    50 min
    50 min
    Course exam

Free lessons

What does the course cover

1.1 What does the course cover

4 min

What is Web Scraping

1.2 What is Web Scraping

3 min

Ethics of Scraping

1.4 Ethics of Scraping

3 min

Setting up the Environment

2.1 Setting up the Environment

1 min

Installing the Necessary Packages

2.2 Installing the Necessary Packages

1 min

API overview

3.1 API overview

3 min

Start for free

4.8

Based on 862 reviews

#1 most reviewed

AI and data learning platform on Trustpilot.

94%

of AI and data science graduates

successfully change

or advance their careers.

9 in 10

people walk away career-ready

with practical data and AI skills.

ACCREDITED certificates

Craft a resume and LinkedIn profile you’re proud of—featuring certificates recognized by leading global institutions.

Earn CPE-accredited credentials that showcase your dedication, growth, and essential skills—the qualities employers value most.

  • Institute of Analytics
  • The Association of Data Scientists
  • E-Learning Quality Network
  • European Agency for Higher Education and Accreditation
  • Global Association of Online Trainers and Examiners

Certificates are included with the Self-study learning plan.

A LinkedIn profile mockup on a mobile screen showing Parker Maxwell, a Certified Data Analyst, with credentials from 365 Data Science listed under Licenses & Certification. A 365 Data Science Certificate of Achievement awarded to Parker Maxwell for completing the Data Analyst career track, featuring accreditation badges and a gold “Verified Certificate” seal.

How it WORKS

  • Lessons
  • Exercises
  • Projects
  • Practice exams
  • AI mock interviews

Lessons

Learn through short, simple lessons—no prior experience in AI or data science needed.

Try for free

Exercises

Reinforce your learning with mini recaps, hands-on coding, flashcards, fill-in-the-blank activities, and other engaging exercises.

Try for free

Projects

Tackle real-world AI and data science projects—just like those faced by industry professionals every day.

Try for free

Practice exams

Track your progress and solidify your knowledge with regular practice exams.

Try for free

AI mock interviews

Prep for interviews with real-world tasks, popular questions, and real-time feedback.

Try for free

Student REVIEWS

A collage of student testimonials from 365 Data Science learners, featuring profile photos, names, job titles, and quotes or video play icons, showcasing diverse backgrounds and successful career transitions into AI and data science roles.