{"id":24785767,"url":"https://github.com/se-jaeger/omnivore-rss-handler-hack","last_synced_at":"2025-03-24T09:13:30.379Z","repository":{"id":216718064,"uuid":"741844381","full_name":"se-jaeger/omnivore-rss-handler-hack","owner":"se-jaeger","description":"Hack to subscribe RSS feeds on a self-hosted Omnivore instance.","archived":false,"fork":false,"pushed_at":"2024-01-11T21:25:05.000Z","size":8,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T14:39:21.630Z","etag":null,"topics":["omnivore","omnivore-api","read-it-later","rss"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/se-jaeger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-11T08:23:22.000Z","updated_at":"2025-01-12T15:47:56.000Z","dependencies_parsed_at":"2024-01-12T08:35:28.814Z","dependency_job_id":null,"html_url":"https://github.com/se-jaeger/omnivore-rss-handler-hack","commit_stats":null,"previous_names":["se-jaeger/omnivore-rss-handler-hack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/se-jaeger%2Fomnivore-rss-handler-hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/se-jaeger%2Fomnivore-rss-handler-hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/se-jaeger%2Fomnivore-rss-handler-hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/se-jaeger%2Fomnivore-rss-handler-hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/se-jaeger","download_url":"https://codeload.github.com/se-jaeger/omnivore-rss-handler-hack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245240925,"owners_count":20583102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["omnivore","omnivore-api","read-it-later","rss"],"created_at":"2025-01-29T14:31:14.223Z","updated_at":"2025-03-24T09:13:30.358Z","avatar_url":"https://github.com/se-jaeger.png","language":"Python","readme":"# `omnivore-rss-handler-hack`\n\nHack to subscribe RSS feeds on a self-hosted Omnivore instance.\n\nCurrently, Omnivore's RSS subscriptions rely on cloud tasks. Therefore, self-hosted instances miss this feature.  This repo provides a simple Python script, which reads the `FEEDS_FILE` (JSON), iterates over its entries, [parses their feeds](https://feedparser.readthedocs.io/en/latest/#), and [tells Omnivore to add new articles](https://docs.omnivore.app/integrations/api.html#saving-a-url-with-the-api). To avoid re-adding articles, it uses a `CACHE_FILE` (JSON) to remember which articles were already added. Scheduling this script ([e.g., using a cron job](#example-kubernetes-cron-job-to-schedule-omnivore-rss-handler-hack)) once an hour mimics (hosted) Omnivores' built-in support for RSS subscriptions.\n\n\n## `FEEDS_FILE` Structure\n\n```json\n{\n  \"blog\": \"https://blog.example/feed\",\n  \"another-blog\": \"https://another-blog.example/rss.xml\",\n}\n```\n\n## Build and Push Image\n\n(If you trust me, you can use mine on Docker Hub: `sejaeger/omnivore-rss-handler-hack`)\n\n```bash \ndocker build -t \u003cYour Docker Hub User\u003e/omnivore-rss-handler-hack:v0.1 .\ndocker push \u003cYour Docker Hub User\u003e/omnivore-rss-handler-hack:v0.1\n```\n\n\n## Example Kubernetes Cron-Job to Schedule `omnivore-rss-handler-hack`\n\n```yaml\napiVersion: batch/v1\nkind: CronJob\nmetadata:\n  namespace: omnivore\n  name: omnivore-rss-handler-hack\nspec:\n  # run hourly\n  schedule: \"*/60 * * * *\"\n  failedJobsHistoryLimit: 1\n  successfulJobsHistoryLimit: 3\n  concurrencyPolicy: Forbid\n  jobTemplate:\n    spec:\n      template:\n        spec:\n          restartPolicy: Never\n          containers:\n            - name: dyndns-updater\n              image: \u003cYour Docker Hub User\u003e/omnivore-rss-handler-hack:v0.1\n              imagePullPolicy: IfNotPresent\n              env:\n                # This is the internal URL, you can also use a public URL\n                - name: API_URL\n                  value: \"http://omnivore-omnivore-api:8080/api/graphql\"\n                # Somehow inject your Omnivore API token: https://docs.omnivore.app/integrations/api.html#getting-an-api-token\n                - name: API_TOKEN\n                  valueFrom:\n                    secretKeyRef:\n                      name: omnivore-api-token\n                      key: API_TOKEN\n                - name: CACHE_FILE\n                  value: \"/home/cache.json\"\n                - name: FEEDS_FILE\n                  value: \"/home/feeds.json\"\n              volumeMounts:\n                - name: cache-feed-directory\n                  mountPath: /home\n          volumes:\n            - name: cache-feed-directory\n              persistentVolumeClaim:\n                claimName: omnivore-pvc\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fse-jaeger%2Fomnivore-rss-handler-hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fse-jaeger%2Fomnivore-rss-handler-hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fse-jaeger%2Fomnivore-rss-handler-hack/lists"}