{"id":29717380,"url":"https://github.com/a-jean-andreasian/pingpatrol","last_synced_at":"2025-09-21T22:32:20.649Z","repository":{"id":305284558,"uuid":"1022471700","full_name":"a-jean-andreasian/PingPatrol","owner":"a-jean-andreasian","description":"The best tool whether to keep free-tier websites awake, or to ping websites for monitoring their health. Works on all OS, including Windows. Operates natively without any external schedulers like cron or Task Scheduler.","archived":false,"fork":false,"pushed_at":"2025-07-27T21:47:32.000Z","size":28,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-27T23:26:44.948Z","etag":null,"topics":["keep-awake","pinger","python","scheduler","vps"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a-jean-andreasian.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,"zenodo":null}},"created_at":"2025-07-19T06:27:21.000Z","updated_at":"2025-07-27T21:45:20.000Z","dependencies_parsed_at":"2025-07-19T11:35:13.224Z","dependency_job_id":null,"html_url":"https://github.com/a-jean-andreasian/PingPatrol","commit_stats":null,"previous_names":["a-jean-andreasian/pingpatrol"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a-jean-andreasian/PingPatrol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-jean-andreasian%2FPingPatrol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-jean-andreasian%2FPingPatrol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-jean-andreasian%2FPingPatrol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-jean-andreasian%2FPingPatrol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a-jean-andreasian","download_url":"https://codeload.github.com/a-jean-andreasian/PingPatrol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a-jean-andreasian%2FPingPatrol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276318356,"owners_count":25621649,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["keep-awake","pinger","python","scheduler","vps"],"created_at":"2025-07-24T07:12:16.904Z","updated_at":"2025-09-21T22:32:20.618Z","avatar_url":"https://github.com/a-jean-andreasian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![a](https://i.ibb.co/Spk964x/wmremove-transformed.png)\n\n---\n\nThe best tool whether to keep free-tier websites awake, or to ping websites for monitoring their health. \n\nWorks on all OS, including Windows, VPS systems or local machines without relying on external schedulers like `cron` or `Task Scheduler`.\n\n---\n## 🚀 Features\n\n- 🕓 Built-in scheduler (no need for external tools)\n- 🌐 Periodically pings a list of websites\n- 🧵 Threaded execution - pings are run concurrently\n- 🧠 Smart rescheduling for stable uptime monitoring\n- 🪵  Simple log output with timestamps and HTTP status codes\n- ⚙️ Easily extensible and readable\n- 📧 Customizable daily, weekly, or custom frequency reporting logs to email\n\n---\n## 💻 Usage\n\n\n1. **Add sources**\n\nYou will be prompted at runtime to enter the list of URLs to monitor. Alternatively, modify the script to load from a file or hardcode.\n\nJSON structure for sources:\n\n```json\n[\n  {\"url\": \"https://example.com\", \"frequency\": 10},\n  {\"url\": \"https://example2.com\", \"frequency\": 15}\n]\n```\n\n\n2. **Run the program**\n\n```bash\npython script.py\n````\n\nSample output:\n\n```\nDo you want to add sources? (y/n): y\nEnter URL: https://example.com\nEnter URL: https://google.com\n...\n\nStarting monitor...\nFri Jul 19 14:00:01 2025: https://example.com -\u003e 200\nFri Jul 19 14:00:01 2025: https://google.com -\u003e 200\n...\n```\n\n---\n## 🔧 Customization \u0026 possible contribution\n\n* Modify ping interval by adjusting the reschedule logic\n* Add persistent URL storage or alerting (email/Telegram/etc.)\n* Swap `requests` with `httpx` for async if needed\n\n---\n\n## 📦 Requirements\n\n* Python 3.8+\n* `requests`\n\nInstall dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n---\n## 📄 License\n\nCreative Commons Attribution Share Alike 4.0 International, Armen-Jean Andreasian 2025\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-jean-andreasian%2Fpingpatrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa-jean-andreasian%2Fpingpatrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa-jean-andreasian%2Fpingpatrol/lists"}