aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2019-05-31 15:31:21 +0200
committernico <nico@magicbroccoli.de>2019-05-31 15:31:21 +0200
commitf0940cc6152faec3695301c1f70430fddc38a898 (patch)
tree15de93328755d7e4a4785c0ab14215e6a25d8785 /README.md
parent911450c72e83985a8ff8a7f1301184515f4aa351 (diff)
further documentation
* add more docstrings to main.py * add README entry for no argument Thanks to @weiss
Diffstat (limited to 'README.md')
-rw-r--r--README.md24
1 files changed, 23 insertions, 1 deletions
diff --git a/README.md b/README.md
index 97c056f..5fca75e 100644
--- a/README.md
+++ b/README.md
@@ -44,8 +44,30 @@ optional arguments:
-r, --report toggle report output to file
```
+#### run with no argument
+If `main.py` is run without any arguments attached, then the script will output a "top 10" table showing the amount
+of messages/ bots for the most spammy domains in the database.
+
+##### example
+```bash
+$./main.py
+
+| messages | bots | domain |
+|------------+--------+---------------|
+| 42 | 1 | example.net |
+| 17 | 9 | example.rs |
+| 7 | 5 | example.cd |
+| 5 | 3 | example.de |
+| 4 | 4 | example.ru |
+| 3 | 1 | example.co.uk |
+| 3 | 3 | example.com |
+| 3 | 1 | example.net |
+| 3 | 1 | example.fr |
+| 3 | 1 | example.com |
+```
+
#### -in / --infile
-The `--in` or `--infile` argument is designed to run automatically via the logrotate daemon. Therefor the script is
+The `--in` or `--infile` argument is designed to run automatically via the logrotate daemon. Therefore the script is
able to process gzip compressed files and also multiple files at once via shell expansion.
##### example