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
- Host: GitHub
- URL: https://github.com/matthewruzzi/sitemap-to-feed
- Owner: matthewruzzi
- Created: 2025-10-18T23:50:04.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2026-02-06T00:51:57.000Z (4 months ago)
- Last Synced: 2026-02-06T10:44:15.871Z (4 months ago)
- Topics: cli, cli-tool, command-line, command-line-tool, deno, deno-cli, deno-kv, feed, feeds, javascript, rss, rss-feed, sitemap, sitemaps, typescript
- Language: TypeScript
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)