sitemapped

command module
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

sitemapped

Turn a sitemap URL into a list of URLs.

This tool will work with both sitemaps and sitemap indices.

Sitemaps are cached locally, following the XDG standard; this speeds up subsequent invocations, but it is also possible to force a redownload.

Sitemap protocol spec: www.sitemaps.org/protocol.html

Install

Install latest version w/ Go toolchain.

$ go install github.com/miku/sitemapped@latest

Usage

$ sitemapped
Usage of sitemapped:
  -cache-dir string
        path to cache directory (default "/home/tir/.cache/sitemap")
  -f    force redownload, even if cached file exists
  -r int
        max HTTP client retries (default 3)

Examples

$ sitemapped https://besra.net/sitemap.xml | head
https://besra.net/
https://besra.net/index.php/upcoming-conferences/icbsss/
https://besra.net/index.php/upcoming-conferences/
https://besra.net/index.php/icbmge/
https://besra.net/index.php/past-conferences/
https://besra.net/index.php/publications/
https://besra.net/index.php/payment/
https://besra.net/index.php/home/
https://besra.net/index.php/advisory-board/
https://besra.net/index.php/ijabs/

Sitemap index example:

$ sitemapped https://core.ac.uk/sitemap.xml
https://core.ac.uk/reader/14671
https://core.ac.uk/download/pdf/14671.pdf
https://core.ac.uk/display/14671
https://core.ac.uk/reader/14696
https://core.ac.uk/download/pdf/14696.pdf
https://core.ac.uk/display/14696
https://core.ac.uk/reader/14705
https://core.ac.uk/download/pdf/14705.pdf
https://core.ac.uk/display/14705
https://core.ac.uk/reader/14759

Documentation

Overview

sitemapped turns a single URL pointing to a sitemap into a list of URL, resolving sitemapindex type sitemaps, too.

$ sitemapped https://core.ac.uk/sitemap.xml

Some sitemap index style sitemaps may point to thousands of actual sitemaps.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址