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

https://github.com/matthewruzzi/sitemap-to-feed

Deno based cli tool to convert sitemaps to rss feeds
https://github.com/matthewruzzi/sitemap-to-feed

cli cli-tool command-line command-line-tool deno deno-cli deno-kv feed feeds javascript rss rss-feed sitemap sitemaps typescript

Last synced: 23 days ago
JSON representation

Deno based cli tool to convert sitemaps to rss feeds

Awesome Lists containing this project

README

          

# sitemap-to-feed

## Usage
```
Usage: sitemap-to-feed [options]

Options:
--help, -h Show this help message
--sitemap Sitemap URL
--title Feed title
--site Site homepage
--output, -o Write feed to file (optional)
--scrape-titles Enable title scraping (optional)
--cache-file Path to save cache file (optional)
--filter Only include URLs matching this regex (optional)
Pattern matches anywhere in URL (partial match)
Use ^ and $ anchors for start/end matching

Note: Output is always sent to stdout.

Examples
sitemap-to-feed --sitemap "https://sitemaps.org/sitemap.xml" --title "Sitemaps" --site "https://sitemaps.org/"
sitemap-to-feed --sitemap "https://sitemaps.org/sitemap.xml" --title "Sitemaps" --site "https://sitemaps.org/" > "feed.rss"
sitemap-to-feed --sitemap "https://sitemaps.org/sitemap.xml" --title "Sitemaps" --site "https://sitemaps.org/" --output "feed.rss"
sitemap-to-feed --sitemap "https://sitemaps.org/sitemap.xml" --title "Sitemaps" --site "https://sitemaps.org/" --scrape-titles
sitemap-to-feed --sitemap "https://sitemaps.org/sitemap.xml" --title "Sitemaps" --site "https://sitemaps.org/" --scrape-titles --cache-file kv.sqlite3
sitemap-to-feed --sitemap "https://example.com/sitemap.xml" --title "Example Blog" --site "https://example.com/" --filter "blog"
sitemap-to-feed --sitemap "https://example.com/sitemap.xml" --title "Example Blog" --site "https://example.com/" --filter "/posts/"
sitemap-to-feed --sitemap "https://example.com/sitemap.xml" --title "Example Blog" --site "https://example.com/" --filter "^https://example\.com/blog/"
```

## Install
```sh
git clone https://github.com/matthewruzzi/sitemap-to-feed.git
cd sitemap-to-feed
deno install --global --config deno.json --name sitemap-to-feed --unstable-kv --allow-net --allow-read --allow-write main.ts
```

Requires [Deno](https://deno.com)