winspect.rb - STEEM Witness Inspector - AppBase Update

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@inertia·
0.000 HBD
winspect.rb - STEEM Witness Inspector - AppBase Update
#### Overview

Witness Inspector will look at the witnesses you've voted for and finds their latest #witness-category posts so you can get all of the URLs on one screen.

#### Changes

* Uses AppBase.
* Posts are now sorted by creation (oldest to newest).

---

#### Install

To use this [Radiator](https://steemit.com/steem/@inertia/radiator-steem-ruby-api-client) script:

##### Linux

```bash
$ sudo apt-get install ruby-full git openssl libssl1.0.0 libssl-dev
$ gem install bundler
```

##### macOS

```bash
$ gem install bundler
```

I've tested it on various versions of ruby, but I'm currently using:

`ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin17]`

First, clone this gist and install the dependencies:

```bash
$ git clone git@gist.github.com:8fd886f57978cdac3bac10ff58cbcdfa.git winspect
$ cd winspect
$ bundle install
```

Optional: edit the file `winspect.yml` to change chain and/or node url.

---

#### Upgrade

Typically, you can upgrade to the latest version by this command, from the original directory you cloned into:

```bash
$ git pull
```

Usually, this works fine as long as you haven't modified anything.  If you get an error, try this:

```
$ git stash --all
$ git pull --rebase
$ git stash pop
```

If you're still having problems, I suggest starting a new clone.

---

#### Usage

To run the report:

```bash
$ ruby winspect.rb inertia
```

Example output:

```ruby
# Unable to find #witness-category for aggroed https://www.steemit.com/@aggroed
# Unable to find #witness-category for arcange https://www.steemit.com/@arcange
# Unable to find #witness-category for ausbitbank https://www.steemit.com/@ausbitbank
# Unable to find #witness-category for cervantes https://www.steemit.com/@cervantes
# Unable to find #witness-category for followbtcnews https://www.steemit.com/@followbtcnews
# Unable to find #witness-category for jerrybanfield https://www.steemit.com/@jerrybanfield
# Unable to find #witness-category for qurator https://www.steemit.com/@qurator
# Unable to find #witness-category for steemgigs https://www.steemit.com/@steemgigs
# Unable to find #witness-category for teamsteem https://www.steemit.com/@teamsteem
# Unable to find #witness-category for themarkymark https://www.steemit.com/@themarkymark
{
    "2016-04-22T18:24:15" => "https://www.steemit.com/witness-category/@riverhead/witness-proposal-riverhead",
    "2017-05-31T16:52:36" => "https://www.steemit.com/witness-category/@jesta/jesta-witness-update-march-through-may",
    "2017-06-04T22:33:39" => "https://www.steemit.com/witness-category/@thecryptodrive/a-world-of-witnesses-geo-diversity-for-a-safer-tomorrow",
    "2017-09-08T12:02:39" => "https://www.steemit.com/witness-category/@furion/conductor-0-3-update-steem-witness-toolkit",
    "2017-09-19T05:36:57" => "https://www.steemit.com/witness-category/@anyx/anyx-cheetah-and-steemcleaners-witness-update-2017-09-18",
    "2017-12-25T16:51:21" => "https://www.steemit.com/witness-category/@pharesim/merry-xmas",
    "2018-01-03T20:09:00" => "https://www.steemit.com/witness-category/@good-karma/good-karma-witness-update-3rd-jan-2018-2f5a7a56bb2e2",
    "2018-01-04T12:35:51" => "https://www.steemit.com/witness-category/@pfunk/pfunk-new-year-witness-update",
    "2018-01-10T19:35:27" => "https://www.steemit.com/witness-category/@utopian-io/utopian-witness-backup-witness-and-failover-script-now-in-place-and-running",
    "2018-01-15T19:11:36" => "https://www.steemit.com/witness-category/@roelandp/blue-monday-life-blog-from-amsterdam-2018-what-will-it-bring-witness-updates-surf-plans-conference-plans-steemfest",
    "2018-01-23T17:23:42" => "https://www.steemit.com/witness-category/@reggaemuffin/witness-discussion-sbd-price-and-reverse-peg",
    "2018-03-04T13:36:15" => "https://www.steemit.com/witness-category/@blockbrothers/witness-update-week-9-2018-new-server-and-steemify-news",
    "2018-03-05T02:56:18" => "https://www.steemit.com/witness-category/@netuoso/state-of-the-witness-15-witness-upgraded-to-64gb-ram-steemcreate-updates-steemdevs-constantly-growing-appbase-testing-underway",
    "2018-03-11T12:39:06" => "https://www.steemit.com/witness-category/@klye/power-overwhelming-deploying-new-128gb-ram-witness-server",
    "2018-04-09T03:23:42" => "https://www.steemit.com/witness-category/@helo/steemit-quebec-witness-march-2018-update",
    "2018-04-20T22:13:27" => "https://www.steemit.com/witness-category/@someguy123/guide-optimise-your-rpc-server-for-better-performance",
    "2018-04-22T19:41:45" => "https://www.steemit.com/witness-category/@gtg/6tkskj-gtg-witness-log",
    "2018-04-24T18:13:51" => "https://www.steemit.com/witness-category/@fyrst-witness/mandatory-witness-voting-proxy-to-allow-users-to-keep-posting-commenting",
    "2018-04-27T00:06:33" => "https://www.steemit.com/witness-category/@emrebeyler/my-witness-node-updated-to-0-19-3",
    "2018-04-30T00:33:27" => "https://www.steemit.com/witness-category/@yabapmatt/yabapmatt-s-witness-update"
}
```

---

Check here to see an updated version of this script:

https://gist.github.com/inertia186/8fd886f57978cdac3bac10ff58cbcdfa

---
#### Troubleshooting

##### Problem: The node I'm using is down.

Is there a list of nodes?

##### Solution: Yes, special thanks to @jamzed.

https://geo.steem.pl/

---

<center>
  ![](http://i.imgur.com/mnOaF3K.png)
</center>

See my previous Ruby How To posts in: [#radiator](https://steemit.com/created/radiator) [#ruby](https://steemit.com/created/ruby)

## Get in touch!

If you're using winspect, I'd love to hear from you.  Drop me a line and tell me what you think!  I'm @inertia on STEEM and [SteemSpeak](http://discord.steemspeak.com).
  
## License

I don't believe in intellectual "property".  If you do, consider winspect as licensed under a Creative Commons [![CC0](http://i.creativecommons.org/p/zero/1.0/80x15.png)](http://creativecommons.org/publicdomain/zero/1.0/) License.
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,