|Ben de Graaff 432be5c75f iCal support; Twitter fix||3 months ago|
|.session||2 years ago|
|bin||3 months ago|
|netwatch||3 months ago|
|.gitignore||2 years ago|
|COPYING||2 years ago|
|README.md||1 year ago|
|config-example.yml||2 years ago|
|setup.py||2 years ago|
A collection of tools to watch for new content on the Internet.
New content updates are sent as single-line JSON blobs, which can then be further processed by the tool of your choosing.
Install the package and its dependencies. A virtual environment is well suited for this:
virtualenv -p python3 venv venv/bin/pip install -e .
A simple cron-style usage example:
#!/bin/sh cd $HOME/code/netwatch/ venv/bin/netwatch feeds.yml 2>>log | bin/pegasus-publish
Mailboxes can also be watched (work in progress) and rendered to HTML:
#!/bin/sh cd $HOME/code/netwatch/ venv/bin/python bin/watchbox user:pass@imap-server /var/www/mails/ http://example.com/mails/ 2>>log | bin/pegasus-publish '#mychannel'
pegasus-publish script is just an example: in this case it outputs
messages over a UNIX socket to an IRC bot.
Netwatch stores its session data on disk as JSON object:
Each feed has a unique name associated with it which is used to determine the path on disk for the session object. The default path is ‘.session’ in the current working directory.