Skip to content
smap tell you about internal links in a domain and generate a standard sitemap
Go Dockerfile Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/smap
internal
vendor
.travis.yml
Dockerfile
LICENSE
Makefile
README.md
go.mod
go.sum
test.sh

README.md

SMAP Go Report Card Build Status codecov.io

What is it?

SMAP print the details of interconnections between various link in a site. Also, it prints all links found in a particular domain.

{
      "URLs": {
          "https://goharbor.io": {},
          "https://goharbor.io/blogs": {},
          "https://goharbor.io/blogs/harbor-joins-cncf": {},
          "https://goharbor.io/blogs/hello-world": {},
          "https://goharbor.io/community": {},
          "https://goharbor.io/docs": {}
      },
      "Connections": {
          "https://goharbor.io": {
              "https://goharbor.io": {},
              "https://goharbor.io/blogs": {},
              "https://goharbor.io/community": {},
              "https://goharbor.io/docs": {}
          },
          "https://goharbor.io/blogs": {
              "https://goharbor.io": {},
              "https://goharbor.io/blogs": {},
              "https://goharbor.io/blogs/harbor-joins-cncf": {},
              "https://goharbor.io/blogs/hello-world": {},
              "https://goharbor.io/community": {},
              "https://goharbor.io/docs": {}
          },
          "https://goharbor.io/blogs/harbor-joins-cncf": {
              "https://goharbor.io": {},
              "https://goharbor.io/blogs": {},
              "https://goharbor.io/community": {},
              "https://goharbor.io/docs": {}
          },
          "https://goharbor.io/blogs/hello-world": {
              "https://goharbor.io": {},
              "https://goharbor.io/blogs": {},
              "https://goharbor.io/community": {},
              "https://goharbor.io/docs": {}
          },
          "https://goharbor.io/community": {
              "https://goharbor.io": {},
              "https://goharbor.io/blogs": {},
              "https://goharbor.io/community": {},
              "https://goharbor.io/docs": {}
          },
          "https://goharbor.io/docs": {
              "https://goharbor.io": {},
              "https://goharbor.io/blogs": {},
              "https://goharbor.io/community": {},
              "https://goharbor.io/docs": {}
          }
      }
  }
StdSiteMap:
 <urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://goharbor.io/docs</loc></url><url><loc>https://goharbor.io/blogs</loc></url><url><loc>https://goharbor.io/blogs/harbor-joins-cncf</loc></url><url><loc>https://goharbor.io/blogs/hello-world</loc></url><url><loc>https://goharbor.io</loc></url><url><loc>https://goharbor.io/community</loc></url></urlset>

Prerequisites

Either Go or Docker should be installed.

Building

You can use following commands to build if go is installed:

   $ make build

You will get a binary smap in the root folder.

Or you can use following commands if docker is installed.

   $ make image

Which will you an image smap:latest.

Running(Binary)

You can use :-

   $ ./smap -domain=goharbor.com -depth=3

Running(Docker)

You can use :-

   $ docker run -ti smap smap -domain=goharbor.io
You can’t perform that action at this time.