šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/a1esandr/sitemap_parser

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/a1esandr/sitemap_parser

v0.1.1
Source
Go
Version published
Created
Source

sitemap_parser

Tool for parsing XML sitemap.

  • Creates list of all site pages. Prints list to console by defaults.
  • Can execute backup of loaded pages if backup path provided. Also creates zip archive of all backuped pages.

Expects site has sitemap.xml file, for example, https://alextech18.blogspot.com/sitemap.xml

Prerequisites

  • Go 1.16

Usage

Loading dependencies

go mod tidy

Run

go run parser.go

Settings

Envs

Envs have precedence over command line args

Command line args

Command line args analized if envs are not present

  • -site - (Required, or existence of SITE env) URL of site with sitemal.xml, for example,
go run parser.go -site https://alextech18.blogspot.com
  • -backup - (Optional) path for backuping loaded website pages, for example,
go run parser.go -site https://alextech18.blogspot.com -backup /home/A1esandr/backups

FAQs

Package last updated on 13 Aug 2021

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