{"id":20009091,"url":"https://github.com/wbrowne/notify","last_synced_at":"2025-03-02T01:41:18.917Z","repository":{"id":142650376,"uuid":"262360700","full_name":"wbrowne/notify","owner":"wbrowne","description":"Simple watcher and notifier with Ruby, Chrome and Watir","archived":false,"fork":false,"pushed_at":"2020-05-17T16:48:12.000Z","size":122,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T14:30:30.728Z","etag":null,"topics":["chromedriver","ruby-cli","watir-webdriver"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/wbrowne.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-08T15:32:36.000Z","updated_at":"2021-04-20T08:43:40.000Z","dependencies_parsed_at":"2024-04-14T06:02:23.919Z","dependency_job_id":null,"html_url":"https://github.com/wbrowne/notify","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/wbrowne%2Fnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbrowne%2Fnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbrowne%2Fnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbrowne%2Fnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wbrowne","download_url":"https://codeload.github.com/wbrowne/notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241447520,"owners_count":19964314,"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":["chromedriver","ruby-cli","watir-webdriver"],"created_at":"2024-11-13T07:14:18.642Z","updated_at":"2025-03-02T01:41:18.910Z","avatar_url":"https://github.com/wbrowne.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.png\" width=\"400\"\u003e\n\u003c/p\u003e\n\nNotify is a (very stupid) ruby script that will periodically visit a web page and notify you based on changing web content which you specify.\n\nFor example - you would like to know when a certain product page no longer displays the text \"Not in stock\". \nIE you want a Logitech camera and don't want to spend all your free time refreshing the product page.\n\n```json\n{\n  \"url\": \"https://www.logitech.com/de-de/product/hd-pro-webcam-c920s\",\n  \"criteria\": {\n    \"js_selector\": \"#section-product-hero \u003e div.container.product-hero-container-top.js-productContainerTop \u003e div.product-details-ctn.js-productDetailsCtn \u003e div \u003e div.product-details-block.cart.buyAtPartner.black \u003e div \u003e p.product-hero-availability-message\",\n    \"match\": {\n      \"condition\": \"ne\",\n      \"text\": \"Nicht auf Lager\"\n    }\n  },\n  \"interval\": 60\n},\n...\n```\n\n## Installation\n\n(only macOS currently)\n\n- Install [chromedriver](https://chromedriver.chromium.org/)\n- Fetch dependencies:\n\n```bash\nbundle install\n```\n\n## Usage\n\n```bash\nruby ./main.rb watch config.json\n```\n\n```json\n{\n  \"url\": \"https://www.logitech.com/de-de/product/hd-pro-webcam-c920s\",\n  \"criteria\": {\n    \"js_selector\": \"#section-product-hero \u003e div.container.product-hero-container-top.js-productContainerTop \u003e div.product-details-ctn.js-productDetailsCtn \u003e div \u003e div.product-details-block.cart.buyAtPartner.black \u003e div \u003e p.product-hero-availability-message\",\n    \"match\": {\n      \"condition\": \"ne\",\n      \"text\": \"Nicht auf Lager\"\n    }\n  },\n  \"interval\": 60,\n  \"notification\": {\n    \"name\": \"Logitech webcam stock check\",\n    \"from\": \"watcher@noti.fy\",\n    \"to\": \"desperateforalogitechwebcam@gmail.com\",\n    \"redirect\": \"https://www.logitech.com/de-de/product/hd-pro-webcam-c920s\",\n    \"server\": {\n      \"address\": \"smtp.notify.com\",\n      \"port\": 587,\n      \"domain\": \"mail.notify.com\",\n      \"username\": \"watcher@noti.fy\",\n      \"password\": \"$up@S3cu]Ur3\"\n    }\n  }\n}\n```\n\nCommand helper:\n```bash\nruby ./main.rb help \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbrowne%2Fnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwbrowne%2Fnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbrowne%2Fnotify/lists"}