gaurav-gogia / VisualRants

A visualization of a subset of DevRant's rant statistics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VisualRants

VisualRants consumes the DevRant API and generates graphs based on a rant's data.

Tech

  • StructOpt - Tool to parse command line arguments, based on clap.
  • Plotlib - Data plotting and rendering library

Installing

Building VisualRants requires rustup, version 1.14.0 or more recent. If you have an older version, run rustup self update

Commandline Arguments

  • -s SORT sets how you want rants to be sorted. Possible values for sort: recent, algo, top
  • -r RANGE sets the time period to fetch rants from. Possible values for range: day, week, month, all
  • -l LIMIT sets the number of rants to fetch
  • --skip SKIP sets the number of rants to skip. Defaults to zero

To display help, type cargo run -- --help

Examples

The following are some example commands

cargo run -- -s algo -r day -l 50 --skip 1

cargo run -- -r month -s algo -l 20

Screenshots

User upvotes against number of comments on rant

User upvotes against number of comments on rant


User upvote count against rant upvote count

User upvote count against rant upvote count

Current Work

Save fetched rants to MySQL

License

This is provided under MIT.

About

A visualization of a subset of DevRant's rant statistics

License:MIT License


Languages

Language:Rust 100.0%