Daily Python Projects

Daily Python Projects

Build a Batch Wikipedia Title Scraper

Level: Beginner

Ardit Sulce's avatar
Ardit Sulce
Nov 12, 2025
∙ Paid

Your task for today is to create a simple script that reads Wikipedia URLs from a Python list and extracts the title of each article.

Project Task

Create a Wikipedia title scraper that:

  • Stores 5 Wikipedia URLs in a Python list

  • Uses the requests library to fetch each webpage

  • Uses BeautifulSoup to parse the HTML content

  • Extracts the article title from each Wikipedia page

  • Prints out each title in a clean format

  • Loops through all URLs automatically

This project gives you hands-on practice with web scraping, HTML parsing, and working with external libraries — essential skills for data extraction projects.

Use this list of Wikipedia URLs for convenience:

urls = [
    “https://en.wikipedia.org/wiki/Python_(programming_language)”,
    “https://en.wikipedia.org/wiki/Artificial_intelligence”,
    “https://en.wikipedia.org/wiki/Machine_learning”,
    “https://en.wikipedia.org/wiki/Web_scraping”,
    “https://en.wikipedia.org/wiki/Data_science”
]

Expected Output

Wikipedia Title Scraper
=======================

Scraping 5 Wikipedia articles...

Article 1: Python (programming language)
Article 2: Artificial intelligence
Article 3: Machine learning
Article 4: Web scraping
Article 5: Data science

Scraping complete!

Join the Python & AI Builders Skool Community

Got questions to ask the author about this project? Join our Python & AI Builders community for weekly Python & AI videos and discussions:

https://skool.com/automateit

Skeleton and Solution

Below you will find both a downloadable skeleton.py file to help you code the project with comment guides and the downloadable solution.py file containing the correct solution.

Get the code skeleton here:

Keep reading with a 7-day free trial

Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Ardit Sulce · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture