Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

readme.md

Simple Sitemap Scraper

This is a simple Python script to scrape URLs from an XML sitemap.

Requirements

  • Python 3.x
  • requests library

Installation

  1. Clone the repository or download the script.

  2. Install the required library using pip:

    pip install requests

Usage

  1. Open the script file and set the sitemap_url variable to the URL of the sitemap you want to scrape.

  2. Run the script:

    python sitemap_scraper.py

Example

# Example usage
sitemap_url = 'https://example.com/sitemap.xml'

In the script, change the sitemap_url variable to the URL of the sitemap you want to scrape. For example:

sitemap_url = 'https://example.com/sitemap.xml'

After setting the sitemap_url, run the script to scrape the URLs from the specified sitemap.