Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/hankpeeples/sitemapbuilder

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/hankpeeples/sitemapbuilder

  • v0.0.0-20220601052624-fe419b4ff558
  • Source
  • Go
  • Socket score

Version published
Created
Source

Sitemap Builder

This program builds a sitemap of the website you give it. It visits the root page and makes a list of every link found on that page that points to a page on the same domain. Once the list of links is created, it visits each of them and adds any new links it finds to the list. This step repeats over and over therefore visiting every page on that domain that can be reached from the root page. (Given that the -depth=<num> flag allows the program to go deep enough to see all pages).

Usage

  • Run the program using go run main.go <optional flags> > map.xml. The > map.xml will send the program output to a new file named map.xml. If this is not included, the xml format will be printed in the terminal window.
  • The optional flags are as follows:
    • -url=<your domain of choice> The default is https://pkg.go.dev.
    • -depth=<num> The default is 1.

Note: Giving a depth of 2+ can cause a long run time depending on the domain you choose. Using the default domain and a depth of 2 produced a total run time of about 3 minutes (791 links were visited during this time).

FAQs

Package last updated on 01 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc