Skip to content

nolotz/sitemapcrawl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sitemapcrawl

Resolve all URL's from sitemap and sitemap index files.

package main

import (
	"context"

	"github.com/nolotz/sitemapcrawl"
)

func MyFlexiFunc() {
	sitemapResolver := sitemapcrawl.NewResolver()
	ctx := context.Background()

	urls, err := sitemapResolver.Resolve(ctx, "https://example.com/sitemap.xml")
	if err != nil {
		panic(err)
	}

	// enjoy bro!
	_ = urls
}

Releases

No releases published

Packages

No packages published

Languages