{"id":17185003,"url":"https://github.com/timmywil/page-poller","last_synced_at":"2025-04-13T18:14:41.421Z","repository":{"id":39698823,"uuid":"156612657","full_name":"timmywil/page-poller","owner":"timmywil","description":"A small Node.js script that polls a website and sends a notification when there's a change. Inspired by my attempts to get a close hotel at PAX East.","archived":false,"fork":false,"pushed_at":"2022-11-10T04:25:58.000Z","size":110,"stargazers_count":12,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T18:14:35.753Z","etag":null,"topics":["refresh","website-monitor"],"latest_commit_sha":null,"homepage":"","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/timmywil.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-11-07T21:48:48.000Z","updated_at":"2023-12-24T23:03:48.000Z","dependencies_parsed_at":"2023-01-22T12:01:30.711Z","dependency_job_id":null,"html_url":"https://github.com/timmywil/page-poller","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/timmywil%2Fpage-poller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timmywil%2Fpage-poller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timmywil%2Fpage-poller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timmywil%2Fpage-poller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timmywil","download_url":"https://codeload.github.com/timmywil/page-poller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248758418,"owners_count":21156957,"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":["refresh","website-monitor"],"created_at":"2024-10-15T00:44:56.898Z","updated_at":"2025-04-13T18:14:41.400Z","avatar_url":"https://github.com/timmywil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# page-poller\n\npage-poller is a simple Node.js script that polls a website and alerts when there's a change. It uses a headless browser (via [Puppeteer](https://github.com/puppeteer/puppeteer/)) to render the page. The advantage is that it will catch changes in client-rendered content, such as with Single Page Apps that use JavaScript to render content.\n\n| Static pages       | Pages rendered with JS | Pages behind login |\n| ------------------ | ---------------------- | ------------------ |\n| :heavy_check_mark: | :heavy_check_mark:     | :x:                |\n\nThis can be used for any website by setting the `--url` option. It strips csrf tokens and all script tags, which sometimes contain tokens that are supposed to change on every refresh. I may add functionality to select certain parts of a page to check for changes, but for now it just checks whole pages.\n\nI originally built this to poll PAX sites to alert me when badges were available, and the `--pax` option is still there for that purpose.\n\nWhen there's a change, the script will stop polling, print a diff to the command line, send a desktop notification, and immediately open the page in your default browser.\n\n![Notification screenshot](https://raw.githubusercontent.com/timmywil/page-poller/master/page-poller.png)\n\n## Requirements\n\nRequires [Node.js](https://nodejs.org/en/download/) to run.\n\n## Installation\n\n```bash\n$ git clone git@github.com:timmywil/page-poller.git\n$ cd page-poller\n$ npm install\n```\n\n## Usage\n\n```bash\n$ ./page-poller.js -u https://timmywil.com # Leave open in a terminal and let it run. Ctrl-c to quit.\n$ ./page-poller.js --pax east\n```\n\n#### Options\n\n```\n  --url, -u        URL to poll                                          [string]\n  --poll, -p       Poll interval in milliseconds. Minimum is 500.\n                                                        [number] [default: 5000]\n  --pax            PAX site to poll\n                          [choices: \"west\", \"east\", \"aus\", \"south\", \"unplugged\"]\n  --continual, -c  Continue polling even when there is a change        [boolean]\n  --help           Show help\n  --version        Show version number\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimmywil%2Fpage-poller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimmywil%2Fpage-poller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimmywil%2Fpage-poller/lists"}