https://github.com/dimensiondev/store-watcher
Browser Store Publish Watcher
https://github.com/dimensiondev/store-watcher
Last synced: 4 months ago
JSON representation
Browser Store Publish Watcher
- Host: GitHub
- URL: https://github.com/dimensiondev/store-watcher
- Owner: DimensionDev
- License: agpl-3.0
- Created: 2020-04-21T09:25:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-29T07:26:03.000Z (over 5 years ago)
- Last Synced: 2025-02-15T12:52:43.598Z (12 months ago)
- Language: Go
- Homepage: https://hub.docker.com/r/dimensiondev/store-watcher
- Size: 28.3 KB
- Stars: 0
- Watchers: 31
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Store Watcher
This tool is used to observe the actual release time of each store
## Build
```bash
go build ./cmd/watcher
```
## File tree
```plain
├── README.md
├── configure.json # The configure file
├── latest-state.json # record latest version and updated at
├── on-update.py # Observed updated hook
└── watcher # Main program
```
## configure.json [example]
```js
{
"interval": "0 0 * * * *", // at minute 0, fetch all store version info
"user_agent": "store-watcher/1.0 powered-by dimension.im", // request default user-agent
"latest_state_interval": "0 30 * * * *", // at minute 30, save latest state to file
"latest_state_path": "latest-state.json", // latest state save to file path
"hook_program": "./on-update.py", // observed updated hook program
"watches": [
{
"name": "Maskbook", // product name
"platform": "Chrome Store", // publish platform
"target": "https://chrome.google.com/webstore/detail/maskbook/jkoeaghipilijlahjplgbfiocjhldnap",
"pattern": "version\" content=\"(?P[\\d\\.]+)\"" // version info (regex pattern)
}
]
}
```