Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jvidalv/super-simple-sitemap-generator

Node powered scraper that iterates trough all the internal links of the specified url. It works on CSR pages (React, Angular) with dynamic urls.
https://github.com/jvidalv/super-simple-sitemap-generator

csr dynamic google-search-console node sitemap xml

Last synced: 3 months ago
JSON representation

Node powered scraper that iterates trough all the internal links of the specified url. It works on CSR pages (React, Angular) with dynamic urls.

Awesome Lists containing this project

README

        



[![License](http://img.shields.io/npm/l/super-simple-sitemap-generator.svg?style=flat-square)](http://opensource.org/licenses/MIT)
[![NPM Version](http://img.shields.io/npm/v/super-simple-sitemap-generator.svg?style=flat-square)](https://npmjs.com/package/super-simple-sitemap-generator)
[![NPM Downloads](https://img.shields.io/npm/dm/super-simple-sitemap-generator.svg?style=flat-square)](https://npmjs.com/package/super-simple-sitemap-generator)

A node.js powered scrapper 🔥 that iterates trough all the internal links of the specified url.

It works on CSR pages (React, Angular) with dynamic urls.

Once it is done it generates a ``sitemap.xml`` file with all the urls found, ready to be uploaded to Google Search Console.

#### Usage:

``` bash
$ sitemap https://vvlog.dev
```

#### Params:

Parameter | type | default | description
--- | --- | --- | ---
--wait | integer | 1500 | Specify the time (milliseconds) to wait (So the fetches are completed) before starting to parse the page.
--limit | integer | 999999 | Specify the limit of urls to parse before stopping the scrapper.

#### Todo:
* [x] Make it a NPM package.
* [ ] Make wait time dynamic in response of fetches inside url.
* [ ] New params that lets you specify how deep you want to go inside the url.
* [ ] Integrate it as part of build process of a create-react-app.
* [ ] Clean old code.