{"id":20348865,"url":"https://github.com/zgreen/scrape-to-feed","last_synced_at":"2026-05-10T10:44:59.247Z","repository":{"id":55371013,"uuid":"119468231","full_name":"zgreen/scrape-to-feed","owner":"zgreen","description":"Serve feeds from scraped HTML.","archived":false,"fork":false,"pushed_at":"2022-12-07T12:41:36.000Z","size":34,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T11:42:31.985Z","etag":null,"topics":["feed","rss","scraper"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zgreen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-30T02:03:31.000Z","updated_at":"2019-02-02T06:33:12.000Z","dependencies_parsed_at":"2023-01-24T17:31:45.619Z","dependency_job_id":null,"html_url":"https://github.com/zgreen/scrape-to-feed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgreen%2Fscrape-to-feed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgreen%2Fscrape-to-feed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgreen%2Fscrape-to-feed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgreen%2Fscrape-to-feed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgreen","download_url":"https://codeload.github.com/zgreen/scrape-to-feed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241877485,"owners_count":20035417,"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":["feed","rss","scraper"],"created_at":"2024-11-14T22:22:48.820Z","updated_at":"2026-05-10T10:44:59.210Z","avatar_url":"https://github.com/zgreen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scrape-to-feed\n\nServe feeds from scraped HTML.\n\n## Install\n\n`npm install scrape-to-feed`\n\n## Usage\n\n1. At the root of your project, create a `feeds` directory. This directory will contain exported modules for defining your feeds, one feed per file.\n\n2. Add a feed. Here is an example, `./feeds/nyt-example-feed.js`:\n\n```js\nmodule.exports = {\n  url: \"https://www.nytimes.com/\",\n  handler: $ =\u003e [\n    { title: \"NYT example feed\" },\n    ...$(\".story-heading\")\n      .toArray()\n      .map(function(story) {\n        const $story = $(story);\n        return {\n          item: {\n            title: $story.text(),\n            link: $story.find(\"a\").attr(\"href\")\n          }\n        };\n      })\n  ]\n};\n```\n\n3. Create and serve your feeds:\n\n```js\n#!/usr/bin/env node\nrequire(\"scrape-to-feed\")();\n```\n\n4. Your feed will be available at: `localhost:3000/nyt-example-feed`\n\n## Arguments\n\nBy default, all feeds will be re-scaped and rebuilt every hour. You can pass a custom interval, like so:\n\n```js\nrequire(\"scrape-to-feed\")(1000 * 60 * 60 * 24); // Update feeds once per day.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgreen%2Fscrape-to-feed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgreen%2Fscrape-to-feed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgreen%2Fscrape-to-feed/lists"}