https://github.com/fernvenue/rss-filter
RSS Filter, based on Cloudflare Workers and KV storage.
https://github.com/fernvenue/rss-filter
cloudflare cloudflare-workers filter kv rss rss-filter workers
Last synced: 6 months ago
JSON representation
RSS Filter, based on Cloudflare Workers and KV storage.
- Host: GitHub
- URL: https://github.com/fernvenue/rss-filter
- Owner: fernvenue
- License: agpl-3.0
- Created: 2024-12-19T15:55:24.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-19T16:15:04.000Z (about 1 year ago)
- Last Synced: 2025-02-12T14:53:31.449Z (about 1 year ago)
- Topics: cloudflare, cloudflare-workers, filter, kv, rss, rss-filter, workers
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RSS Filter
[](./LICENSE)
[](https://github.com/fernvenue/rss-filter)
[](https://gitlab.com/fernvenue/rss-filter)
RSS Filter, based on Cloudflare Workers and KV storage.
## Usage
First, go to [Storage & Database > KV](https://dash.cloudflare.com/?to=/:account/workers/kv/namespaces) to create a KV namespace. Select **Create a namespace**, enter a name for this namespace, here I use `RSS Filter Rules`, then select **Add**.
Now, go to [Workers & Pages > Overview](https://dash.cloudflare.com/?to=/:account/workers-and-pages) to create a Worker, paste [worker.js](./worker.js) to it and save. After that, go to your Worker **Settings**, you can bind KV in **Bindings**, just choose bind a KV, **Variable name** should be `RSS_FILTER_RULES` here, then choose your KV namespace.
And now, you can configure the RSS URL and the regular expressions you want in KV. Here are some examples:
- Filter content that only includes some keywords: `(Hello|World)`
- Filter out content that contains a specific keyword: `^(?!.*Keyword).*`
In this way, we can filter through `https://worker-rss-filter.example.com/-/https://real-rss-url.example.com`.