Commit df904edd authored by SBassett's avatar SBassett
Browse files updates for SpamAccountStats

- cleaned up some whitespace issues
- enhanced Usage section

Change-Id: I75f6681c8c1cb0d411844c116e2290bddee7b89d
parent 76755ba2
......@@ -37,11 +37,23 @@ zlib
1. Configure ```.env``` to your liking - example values provided.
2. ```chmod +x && ./ {args...}```
3. has a few arguments:
1. ```-h``` = displays help/arguments and exits.
2. ```{project}``` = in the form of {lang code}.{project type}, e.g. ```en.wikipedia```.
3. ```-d```, ```--date``` = a date range in a few different supported formats:
1. -d {int}h = e.g. 1h, range of current utc to 1 hour ago.
2. -d {int}d = e.g. 30d, range of current utc to 30 days ago.
3. -d YYYY-MM-DD = range of current utc to YYYY-MM-DD days ago.
4. -d YYYY-MM-DD-yyyy-mm-dd = date range (utc) from YYYY-MM-DD to yyyy-mm-dd.
5. -d YYYY-MM-DDTHH:MM:SSZ = range of current utc to YYYY-MM-DDTHH:MM:SSZ days ago.
6. -d YYYY-MM-DDTHH:MM:SSZ-yyyy-mm-ddThh:mm:ssZ = date range (utc) from YYYY-MM-DDTHH:MM:SSZ to yyyy-mm-ddThh:mm:ssZ (what mediawiki API tends to use).
4. ```-r```, ```--raw``` = raw CSV report output, no informational header.
5. ```--sfsapi``` = also check the StopForumSpam API via url defined as the ```SFS_API_URL``` environment variable.
1. Actually use logstash structured data to search for IPs instead of gross
regexps of json string representations within ```search_user_within_logstash()```
regexps of json string representations within ```search_user_within_logstash()```
2. Refactor to more proper python app.
3. Support sites (might not be possible via logstash...)
......@@ -52,4 +64,3 @@ regexps of json string representations within ```search_user_within_logstash()``
## License
This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment