Thanks to visit codestin.com
Credit goes to github.com

Skip to content
forked from snabb/sitemap

Go XML sitemap and sitemapindex package (golang)

License

dreamsxin/go-sitemap

 
 

Repository files navigation

sitemap

crawl

install

go install github.com/dreamsxin/go-sitemap/cmd/crawl@latest

usage

crawl -u http://example.com -o sitemap.xml
crawl -u http://example.com -o sitemap.xml -c 1

priority

priority.json

{
  "default": {
    "default": 0.4
  },
  "noquery": {
    "0": 1.0,
    "1": 0.9,
    "2": 0.8,
    "3": 0.6,
    "4": 0.4
  },
  "hasquery": {
    "0": 0.7,
    "1": 0.7,
    "2": 0.4,
    "3": 0.2,
    "4": 0.1
  }
}
crawl -u http://example.com -o sitemap.xml -p priority.json

skip query

crawl -u http://example.com -o sitemap.xml -p priority.json -skip-query=true

skip fragment

crawl -u http://example.com -o sitemap.xml -p priority.json -skip-fragment=true

example

Donation

License

MIT

About

Go XML sitemap and sitemapindex package (golang)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%