Skip to main content

No project description provided

Project description

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_scraper import BaseSitemapScraper

scraper = BaseSitemapScraper(
    restaurant_name="Wendy's", # the name of the restaurant (this will be changed to scrape any sites, not just restaurants)
    source_path="https://locations.wendys.com/sitemap.xml", # path to the sitemap URL
    result_path="Sitemaps/wendys.csv", # path where the output CSV will be saved
    url_component_length=7, # Check for only saving the URL with at least the given number of datapoints
    datapoints={
    "base_url": 2,
    "country": 3,
    "state": 4,
    "city": 5,
    "location": 6,
    }, # mapping of which data resides at which index in the URL (index are calulated by splitting URL on '/')
    substring_check="https://locations.wendys.com", # Check for asserting a specific substring that must be present in the URL
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sitemap_url_parser-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sitemap_url_parser-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file sitemap_url_parser-0.1.0.tar.gz.

File metadata

  • Download URL: sitemap_url_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for sitemap_url_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b1a794dba7b3ad85a3d5d044daa7f919137ab670e7e507e6272e573a8f70b7ea
MD5 96b22770f3b0a916ed3aa88caeda4881
BLAKE2b-256 edf13663a2a2dbcf0856db4e82ed91765f84e6a48d434db7f5429e933ca7a989

See more details on using hashes here.

File details

Details for the file sitemap_url_parser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sitemap_url_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15cd7ce787a0823c6cff643d1e058b02537054346cf915a6d5893ec62272335e
MD5 e7200545bc3e9b4d4781542199307b58
BLAKE2b-256 909893379c6132fdf9a1bc62525ace39abff281f89053265c177b8985970c6f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page