An open API service indexing awesome lists of open source software.

https://github.com/marcobeierer/sitemapgenerator-cli

A command line interface for my XML sitemap generator written in Go (golang).
https://github.com/marcobeierer/sitemapgenerator-cli

cli command-line-tool go golang sitemap sitemap-generator xml xml-sitemap xml-sitemap-generator

Last synced: 6 months ago
JSON representation

A command line interface for my XML sitemap generator written in Go (golang).

Awesome Lists containing this project

README

          

# Sitemap Generator CLI
A command line interface for my XML Sitemap Generator written in Go (golang).

## Installation

### From Source
go get -u github.com/marcobeierer/sitemapgenerator-cli
cd $GOPATH/github.com/marcobeierer/sitemapgenerator-cli
go install

### Precompiled
You can find precompiled binaries for 64 bit Linux, MacOS and Windows systems in the `bin` folder of this repository.

## Usage
sitemapgenerator [flags] url

The sitemap is written to the standard output. It is thus possible to redirect the output directly to a file.

### Supported Flags
- tokenpath
- Path to the token file
- max\_fetchers
- Number of the maximal concurrent connections.
- reference\_count\_threshold
- With the reference count threshold you can define that images and videos that are embedded on more than the selected number of HTML pages are excluded from the sitemap.
- enable\_index\_file
- Enable generation of a sitemap index file, recommended for large websites.
- max\_request\_retries
- Number of retries for each failed request
- request\_retry\_timeout
- Timeout in seconds after a failed request
- sleep\_time
- Seconds between each update request

### Example
sitemapgenerator run -tokenpath token.txt https://www.marcobeierer.com > sitemap.xml

## Online Sitemap Generator
The sitemap generator is also available as online tool on [my website](https://www.marcobeierer.com/tools/sitemap-generator).