{"id":35148176,"url":"https://github.com/0install/0watch","last_synced_at":"2026-04-06T01:04:25.230Z","repository":{"id":148220008,"uuid":"95825346","full_name":"0install/0watch","owner":"0install","description":"scans websites for new releases and triggers 0template if required","archived":false,"fork":false,"pushed_at":"2026-04-05T21:02:23.000Z","size":38,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-05T22:21:11.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.0install.net/tools/0watch/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0install.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-06-29T22:29:06.000Z","updated_at":"2026-04-05T21:02:27.000Z","dependencies_parsed_at":"2024-02-23T20:49:31.302Z","dependency_job_id":null,"html_url":"https://github.com/0install/0watch","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/0install/0watch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0install%2F0watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0install%2F0watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0install%2F0watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0install%2F0watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0install","download_url":"https://codeload.github.com/0install/0watch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0install%2F0watch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31455474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-12-28T14:14:43.033Z","updated_at":"2026-04-06T01:04:25.219Z","avatar_url":"https://github.com/0install.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"0watch\n======\n\nCopyright Bastian Eicher et al\n\n\nIntroduction\n------------\n\n0watch scans websites for new releases using arbitrary Python code snippets.\nWhen new releases are detected [0template](https://github.com/0install/0template) is used to create/update a [Zero Install](http://0install.net/) feed.\n\nTo make the `0watch` command available on your command-line you can run:\n\n    0install add 0watch https://apps.0install.net/0install/0watch.xml\n\nTo use 0watch you need both a template file named like `MyApp.xml.template` and watch file named like `MyApp.watch.py` in the same directory. You can then run:\n\n    0watch MyApp.watch.py\n\n\nDetails\n-------\n\nA watch file is a Python script that pulls a list of releases from a website. It must set an attribute named `releases` to an array of dictionaries. Each array element represents to a single release and each dictionary tuple is a variable substitution for the template.\n\nA basic watch file could look like this:\n\n```python\nfrom urllib import request\nimport json\ndata = request.urlopen(request.Request('https://api.github.com/repos/myproj/myapp/releases')).read()\nreleases = [{'version': release['tag_name'], 'released': release['published_at'][0:10]} for release in json.loads(data)]\n```\n\nFor each release reported by the watch file 0watch attempts to determine whether the version is already known. It does this by:\n\n * checking if a file named `MyApp-VERSION.xml` exists in the same directory and\n * checking if a file named `MyApp.xml` exists in the same directory and contains an implementation with the version.\n\n0watch then calls 0template once for each new release.\n\n\nConditions\n----------\n\nThis library is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 2.1 of the License, or (at your option) any later version.\n\nThis library is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this library; if not, write to the Free Software\nFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0install%2F0watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0install%2F0watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0install%2F0watch/lists"}