GithubHelp home page GithubHelp logo

admariner / sitemap-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nkrusch/sitemap-generator

0.0 0.0 0.0 8.37 MB

πŸ—ΊοΈ Need a sitemap? This tech-stack agnostic generator will crawl a website like a real user generating a sitemap along the way.

Home Page: https://chrome.google.com/webstore/detail/hcnjemngcihnhncobgdgkkfkhmleapah

License: MIT License

JavaScript 82.36% HTML 13.17% CSS 4.47%

sitemap-generator's Introduction

Sitemap Generator

Generate sitemaps using Chrome browser. Especially intended for generating sitemaps for single-page apps.

Installation

The latest version is available for installation at Chrome Web Store.

Install here

Idea πŸ’‘

I make a lot of web apps using react and angular. I know there are dev tools that allow generating sitemaps but these require more or less custom setup. I also tried online services that offer to create sitemaps, but found that these were not actually rendering the client side code. My last attempt was trying a service that said it would run in the browser but required some custom code be placed on the website to circumvent cors. At this point I gave up and made my own solution. I decided to make a chrome extension because it addresses many of the issues that occur with the above solutions:

  • Allows rendering javascript
  • Avoids most server-side bottlenecks
  • Usable with any web tech stack
  • Can override CORS policies
  • No application specific setup
  • Accommodates website changes
  • Suitable for non-technical users

This extension works by taking some start URL, crawling that page for more links, and then recursively crawling those pages for more links. Once all found links have been checked, the extension generates a sitemap file. Of course this approach assumes website is properly using anchor tags to connect its contents. The extension also checks HTTP headers and excludes pages that return failing response codes.

This implementation is not practical if website contains tens of thousands of pages. It can however, crawl a few thousand entries in a reasonable amount of time. Also note while the sitemap is being generated, you may continue regular browsing at the same time. The generator will run in its own window.

Development

npm install

Debug:

npm run start

Build:

npm run build

sitemap-generator's People

Contributors

chaos358 avatar nkrusch 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.