Viewing a response to: @inertia/drdoogie-rb-vote-trail-script
Hi there. Am new to Linux, so as Ruby. I have managed to get the VMBox started and loaded up. Currently I'm testing the script on STEEM chain, and also changed the nodes to STEEMS, also included the fail over in the YML. However, I'm getting some inconsistent result. Sometimes it works, some other time it doesn't. Not entirely sure what is the problem, or did I mess anything up. Ofcourse, I will continue to use this on HIVE chain soon, but for now I would like to use it on STEEM first. Appreciate if you can help me have a look if I screwed things up. LOL `[root@localhost drdoogie]# ruby drdoogie.rb Now trailing dailyke20 ... /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/api.rb:839: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/api.rb:839: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/api.rb:839: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open ` This is on my screen, and even the head is upvoting, it seems doesn't pickup anything at all. ```^CTraceback (most recent call last): 26: from drdoogie.rb:99:in `<main>' 25: from drdoogie.rb:99:in `loop' 24: from drdoogie.rb:106:in `block in <main>' 23: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/stream.rb:143:in `operations' 22: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/stream.rb:207:in `transactions' 21: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/stream.rb:257:in `blocks' 20: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/stream.rb:257:in `loop' 19: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/stream.rb:260:in `block in blocks' 18: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/stream.rb:260:in `catch' 17: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/stream.rb:261:in `block (2 levels) in blocks' 16: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/api.rb:405:in `method_missing' 15: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/api.rb:405:in `loop' 14: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/api.rb:426:in `block in method_missing' 13: from /usr/local/rvm/gems/ruby-2.7.0/gems/radiator-0.4.7/lib/radiator/api.rb:653:in `request' 12: from /usr/local/rvm/gems/ruby-2.7.0/gems/net-http-persistent-3.1.0/lib/net/http/persistent.rb:958:in `request' 11: from /usr/local/rvm/gems/ruby-2.7.0/gems/net-http-persistent-3.1.0/lib/net/http/persistent.rb:662:in `connection_for' 10: from /usr/local/rvm/gems/ruby-2.7.0/gems/net-http-persistent-3.1.0/lib/net/http/persistent.rb:964:in `block in request' 9: from /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/http.rb:1492:in `request' 8: from /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/http.rb:1519:in `transport_request' 7: from /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/http.rb:1519:in `catch' 6: from /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/http.rb:1528:in `block in transport_request' 5: from /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/http/response.rb:31:in `read_new' 4: from /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/http/response.rb:42:in `read_status_line' 3: from /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/protocol.rb:201:in `readline' 2: from /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/protocol.rb:191:in `readuntil' 1: from /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/protocol.rb:217:in `rbuf_fill' /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/net/protocol.rb:217:in `wait_readable': Interrupt ``` And once I hit the break, this is what I got. ``` :trails: :dailyke20: :scale_votes: 100.00 % :max_age: 1440 :allow_upvote: true :allow_downvote: false :enable_comments: true :skip_tags: - nsfw - test :only_tags: - wherein :chain_options: :chain: steem :url: https://api.steemit.com :failover_urls: - https://api.steem.bts.tw - https://api.steems.top - https://api.steemitdev.com - https://api.steemjiang.com - https://cn.steems.top - https://steem.61bts.com - https://api.justyy.com - https://steemd.minnowsupportproject.org - https://s2.61bts.com ``` Very much appreciate if you can have a look.
author | davidke20 |
---|---|
permlink | re-inertia-q9qv25 |
category | radiator |
json_metadata | {"tags":["radiator"],"app":"peakd/2020.04.5"} |
created | 2020-05-03 07:20:30 |
last_update | 2020-05-03 07:20:30 |
depth | 1 |
children | 4 |
last_payout | 2020-05-10 07:20:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 4,805 |
author_reputation | 945,929,987,012,551 |
root_title | "drdoogie.rb - Vote Trail Script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,154,450 |
net_rshares | 0 |
These deprecation warnings are safe to ignore. Looks like the stack trace is coming from `^C` to me, which is normal. Other than that, are you saying it never votes? How long do you let it run?
author | inertia |
---|---|
permlink | q9rihv |
category | radiator |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-05-03 15:46:42 |
last_update | 2020-05-03 15:46:42 |
depth | 2 |
children | 3 |
last_payout | 2020-05-10 15:46:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.048 HBD |
curator_payout_value | 0.047 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 196 |
author_reputation | 346,568,901,399,561 |
root_title | "drdoogie.rb - Vote Trail Script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,161,746 |
net_rshares | 241,258,244,698 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
davidke20 | 0 | 239,730,595,344 | 100% | ||
victoria-bella | 0 | 1,527,649,354 | 100% |
Thanks for fast response. Those `warning: calling URI.open via Kernel#open is deprecated, ` will appear after about 5 to 15 minutes. And after it repeated for about 5 or 6 times, then nothing will happen on the screen and it will sit still for hours until I hit the ^C and go out and check if I did anything wrong. Other than that, I'm pretty sure I'm doing all the upvotes with the head, and check back on the trails. It seems none of them are coming. I tried to remove some of the accounts and add on new ones. Sometimes after I did that, it work again. It feels like from 8am until 8pm I can't use it. I will have to keep on trying, and for some unknown reasons, evening some magic touch when I rerun ```ruby drdoogie.rb``` and suddenly everything come alive. LOL. For your information, I duplicated a copy and run it with another profile on hive, everything works perfectly fine. No warning message at all. Super cool ๐ I really love it, except I have no HP on hive ๐ Also, I'm reading on https://github.com/steemit/devportal-tutorials-rb/tree/master/tutorials/11_submit_comment_reply the submit comment reply, but I am hesitating to add it on the code. From what I see, if I add it to drdoogie, then all the accounts who voted will start commenting the same permlink๐คฃ Cause I'm looking for a way to leave a curation comment for the community if that being voted. Will be nice if you can give me some pointer, or I can leave a comment on the related post for this special request.
author | davidke20 |
---|---|
permlink | re-inertia-q9rjdc |
category | radiator |
json_metadata | {"tags":["radiator"],"app":"peakd/2020.04.5"} |
created | 2020-05-03 16:05:39 |
last_update | 2020-05-03 16:05:39 |
depth | 3 |
children | 2 |
last_payout | 2020-05-10 16:05:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,486 |
author_reputation | 945,929,987,012,551 |
root_title | "drdoogie.rb - Vote Trail Script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,162,080 |
net_rshares | 0 |
I don't see why you'd get those warnings only on one chain. But maybe it has to do with how api.steemit.com is configured (rate limiting?). Maybe try a different node as the initial node. As for adding comments after voting, personally I find that obnoxious ("Look I voted for you!"). But I realize that's a matter of taste. To avoid multiple identical comments, you could just track the `author/permlink` locally in a file. If present, don't comment.
author | inertia |
---|---|
permlink | q9rke9 |
category | radiator |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-05-03 16:27:48 |
last_update | 2020-05-03 16:27:48 |
depth | 4 |
children | 1 |
last_payout | 2020-05-10 16:27:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 457 |
author_reputation | 346,568,901,399,561 |
root_title | "drdoogie.rb - Vote Trail Script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 97,162,485 |
net_rshares | 1,559,728,423 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
victoria-bella | 0 | 1,559,728,423 | 100% |