Skip to the content.

Ubuntu Mirrors Scraper

A Python program designed to automatically scrape and organize a comprehensive list of Ubuntu archive and CD (ISO) mirrors directly from the official Launchpad website. This tool helps users and systems identify and utilize up-to-date mirror servers for faster and more reliable access to Ubuntu packages and ISO images.

Features

Usage

To run this scraper and generate the mirror lists, follow these steps:

  1. Install pipenv: If you don’t have pipenv installed, you can install it using pip:
    pip install --upgrade pipenv
    
  2. Install Dependencies: Navigate to the project root directory and install the required Python packages using pipenv:
    pipenv install
    
  3. Run the Scraper: Execute the main.py script using pipenv. This will initiate the scraping process and generate the mirror files in the data/mirrors directory.
    pipenv run python main.py
    

Output Files

The scraper generates the following files, categorized by mirror type:

Archive Mirrors

These files contain a list of mirrors for Ubuntu package archives.

CD Mirrors

These files contain a list of mirrors for Ubuntu CD/DVD (ISO) images.

Technologies Used