Info
Tornado project which monitors urls provided. As for now it supports file based url reader and persist information in memory.
Manual
- Install tormon
$ pip install tormon
- Run tormon providing path to file which has list of urls (each in separate line) to monitor:
$ tor-mon --host=0.0.0.0 --port=8081 --config=/tmp/config.yml --debug=true
- Run tormon using redis as a storage (requires redis-py or/and hiredis)
$ tor-mon --host=0.0.0.0 --port=8081 --config=/tmp/config.yml --debug=true --writer=redis
- Query api to get information:
$ curl http://localhost:8081/api/urls/
$ curl http://localhost:8081/api/stats/
$ curl http://localhost:8081/api/url/\?url\=<url>
- Optionally You can install redis and hiredis