https://github.com/ehsangazar/xml-sitemap-generator
XML Sitemap Simply By Scraping a Domain
https://github.com/ehsangazar/xml-sitemap-generator
scraper sitemap sitemap-generator xml
Last synced: 7 months ago
JSON representation
XML Sitemap Simply By Scraping a Domain
- Host: GitHub
- URL: https://github.com/ehsangazar/xml-sitemap-generator
- Owner: ehsangazar
- Created: 2024-04-14T00:04:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-14T01:20:02.000Z (over 1 year ago)
- Last Synced: 2024-12-23T00:03:29.672Z (10 months ago)
- Topics: scraper, sitemap, sitemap-generator, xml
- Language: TypeScript
- Homepage: https://gazar.dev/package/xml-sitemap-generator
- Size: 104 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# XML Sitemap Generator
A sitemap is like a roadmap for search engines, guiding them through the structure and content of a website. It's essentially a hierarchical list or diagram of all the pages on a website, organized in a way that makes it easy for search engine crawlers to understand and navigate the site's structure.
## How to use
#### Method 1: Clone this repo
```
npm run start -- --uri="https://gazar.dev"
```#### Method 2: As an NPM
```
npm install --save-dev xml-sitemap-generator
``````
import XMLSiteMapGenerator from "xml-sitemap-generator";const main = async () => {
await XMLSiteMapGenerator({
uri:"https://gazar.dev",
whereToSave: "./sitemap.xml",
});
};
main();
```