Sitemap Parser
Under construction! Not ready for use yet! Currently experimenting and planning!
Developed by Satyam Singh 2024
Examples of How To Use (Alpha Version)
Initialise SitemapScraper
from sitemap_url_parser import BaseSitemapScraper
scraper = BaseSitemapScraper(
restaurant_name="Wendy's",
source_path="https://locations.wendys.com/sitemap.xml",
result_path="Sitemaps/wendys.csv",
url_component_length=7,
datapoints={
"base_url": 2,
"country": 3,
"state": 4,
"city": 5,
"location": 6,
},
substring_check="https://locations.wendys.com",
)
scraper.scrape()