Giter VIP home page Giter VIP logo

webmapmaker's Introduction

WebMapMaker

WebMapMaker is a simple tool that crawls your website to build its sitemap in xml or txt format.

CLI usage

Build the binary with make build, then execute it with the following arguments:

./bin/makemap -t="https://example.com" -o="out.xml"

where -t is the target website from which to start crawling and -o is the output file (the file extension is required and must be either .xml or .txt) Other available arguments:

  • -mr (max routines) - specify the maximum amount of goroutines running at the same time (by default, goroutines will be spawned for each page)
  • -so (search options) - flags to configure the behavior of cralwer, specified as string separated by commas. The following flags can be set:
    • ignoreTopLevelDomain - when this options is set, pages with different top level domains will be included in the results. For example, if your website is foobarbaz.com and it has links to foobarbaz.es or foobarbaz.ru, they will also be included.
    • includeWithQuery - by default, all links with query strings will be ignored. This options allows to visit such links as well.
    • includeSubdomains - when this options is set, pages on subdomains will be included in the results. For example, if the initial domain is foo.com, links to domains bar.foo.com or baz.foo.com will be crawled.

Known issues:

  • [] The tool never exits on some websites;
  • [] CLI progress bar prints new frames on new line instead of rewriting old one when the output does not fit in one line in terminal window;

webmapmaker's People

Contributors

sgrishanin avatar tofuoverdose avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.