``` from lighthive.client import Client from lighthive.datastructures import Operation def unvote_top_20(account, active_key): c = Client(keys=[active_key]) top20_witnesses = set( [w["owner"] for w in c.get_witnesses_by_vote("", 20)]) witness_votes = set(c.get_accounts([account])[0]["witness_votes"]) intersection = top20_witnesses.intersection(witness_votes) print("These witnesses will be unvoted:", ", ".join(intersection)) ops = [] for witness in intersection: op = Operation('account_witness_vote', { 'account': account, 'witness': witness, 'approve': False, }) ops.append(op) c.broadcast(ops) if __name__ == '__main__': unvote_top_20("your_account_name", "<active_key>") ``` *** The result: *** <center><img src="https://i.imgur.com/7p4dHZ2.png"></center> *** Not that there is something wrong with anybody in the top20 list at the moment, however, the amount of difference [MV] in votes between top20 and the rest is very big. Of course, I've some favorite people on that list, so in case they have a danger to lose their spot, I'll be voting for them, again. But until then, it's what it's. I'll be using my spare votes for promising backup witnesses instead. If you agree with this approach, you can set me your [witness voting proxy](https://hivesigner.com/sign/account-witness-proxy?proxy=emrebeyler&approve=1), so that you don't have to deal with this yourself.
author | emrebeyler |
---|---|
permlink | a-python-script-to-unvote-top20-witnesses |
category | witness-category |
json_metadata | {"tags":["witness-category","witness","lighthive"],"image":["https://i.imgur.com/7p4dHZ2.png"],"links":["https://hivesigner.com/sign/account-witness-proxy?proxy=emrebeyler&approve=1"],"app":"hiveblog/0.1","format":"markdown"} |
created | 2020-03-31 21:45:30 |
last_update | 2020-03-31 21:45:30 |
depth | 0 |
children | 2 |
last_payout | 2020-04-07 21:45:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 6.579 HBD |
curator_payout_value | 6.018 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,486 |
author_reputation | 448,535,049,068,622 |
root_title | "A Python script to unvote top20 witnesses" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,658,134 |
net_rshares | 36,153,591,439,988 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gerber | 0 | 73,865,698,276 | 3.3% | ||
daan | 0 | 90,527,353,969 | 8% | ||
gidlark | 0 | 2,527,115,070 | 1.75% | ||
exyle | 0 | 1,016,749,990,716 | 12% | ||
sharker | 0 | 5,125,656,856 | 24.5% | ||
kibela | 0 | 7,029,338,794 | 24.5% | ||
felixxx | 0 | 316,538,363,267 | 100% | ||
alinalazareva | 0 | 756,668,832 | 14% | ||
doodleman | 0 | 593,071,934 | 9.8% | ||
shaunmza | 0 | 45,427,044,213 | 100% | ||
birdinc | 0 | 344,814,070,395 | 100% | ||
mys | 0 | 11,374,786,375 | 3.29% | ||
mercadosaway | 0 | 1,135,299,028 | 100% | ||
ruel.cedeno | 0 | 4,670,129,002 | 100% | ||
maxer27 | 0 | 111,104,668,282 | 35% | ||
shitsignals | 0 | 215,297,492,349 | 100% | ||
ralph-rennoldson | 0 | 1,380,655,464 | 1.6% | ||
vidafitnessfeliz | 0 | 567,108,710 | 30% | ||
crokkon | 0 | 39,874,756,197 | 100% | ||
accelerator | 0 | 37,568,196,577 | 3.3% | ||
roleerob | 0 | 2,872,026,709 | 0.49% | ||
deathwing | 0 | 4,178,925,120 | 100% | ||
revisesociology | 0 | 172,156,779,514 | 20% | ||
msp-makeaminnow | 0 | 26,881,502,001 | 100% | ||
msp-foundation | 0 | 0 | 100% | ||
isnochys | 0 | 35,001,694,848 | 28% | ||
investegg | 0 | 0 | 25% | ||
murattatar | 0 | 1,018,301,619 | 20% | ||
kedi | 0 | 2,895,837,026 | 100% | ||
unforgettable | 0 | 3,935,700,487 | 100% | ||
emrebeyler | 0 | 1,193,931,512,062 | 100% | ||
not-a-bird | 0 | 10,452,094,054 | 50% | ||
freakerz | 0 | 1,145,510,607 | 100% | ||
evilest-fiend | 0 | 1,239,007,464 | 50% | ||
mytechtrail | 0 | 40,412,856,082 | 20% | ||
mhm-philippines | 0 | 76,544,039,617 | 24.5% | ||
forkonti | 0 | 562,281,658 | 100% | ||
nokodemion | 0 | 40,911,608,388 | 100% | ||
aydant | 0 | 608,381,569 | 100% | ||
steembasicincome | 0 | 115,084,481,321 | 71.43% | ||
fourfourfun | 0 | 6,439,055,074 | 25% | ||
tinowhale | 0 | 3,013,744,291 | 49% | ||
hayirhah | 0 | 679,277,584 | 27.5% | ||
fromhell2sky | 0 | 9,538,586,863 | 24.5% | ||
chorock | 0 | 117,892,146,361 | 10% | ||
nobyeni | 0 | 1,124,679,135 | 3.57% | ||
cadawg | 0 | 7,441,737,980 | 2.3% | ||
ahmetmertugrul | 0 | 832,386,610 | 100% | ||
tdogvoid | 0 | 571,902,530 | 100% | ||
agememnon | 0 | 1,390,271,832 | 49.5% | ||
flugschwein | 0 | 10,288,528,415 | 35% | ||
tipitip | 0 | 782,103,946 | 100% | ||
backinblackdevil | 0 | 223,861,192,589 | 20% | ||
ruh | 0 | 785,819,546 | 100% | ||
bulent1976 | 0 | 638,427,069 | 100% | ||
wedacoalition | 0 | 10,309,720,412 | 100% | ||
bestboom | 0 | 35,534,601,384 | 3.3% | ||
muratkbesiroglu | 0 | 45,332,478,400 | 100% | ||
mahyulmaulana | 0 | 2,415,982,760 | 100% | ||
manniman | 0 | 33,080,033,334 | 33% | ||
sereze | 0 | 5,427,926,619 | 100% | ||
freddio | 0 | 81,517,352,362 | 15% | ||
we-are | 0 | 2,805,525,416 | 16.66% | ||
jumbot | 0 | 24,542,140,488 | 55% | ||
promobot | 0 | 819,810,025,351 | 100% | ||
techcoderx | 0 | 257,071,342,737 | 100% | ||
honoru | 0 | 36,766,025,667 | 10% | ||
bilimkurgu | 0 | 20,278,731,181 | 100% | ||
archisteem | 0 | 4,117,364,058 | 7.5% | ||
we-are-lucky | 0 | 11,915,512,951 | 100% | ||
luciomcabee | 0 | 706,809,512 | 100% | ||
pablorg94 | 0 | 606,339,437 | 100% | ||
daath | 0 | 4,252,797,109 | 100% | ||
elmauza | 0 | 1,048,246,596 | 100% | ||
julian2013 | 0 | 4,307,510,519 | 1.48% | ||
dlike | 0 | 149,236,562,283 | 3.3% | ||
triptolemus | 0 | 9,634,982,314 | 3.3% | ||
deathcross | 0 | 122,485,140,468 | 100% | ||
ceruleanblue | 0 | 580,180,327 | 100% | ||
bobby.madagascar | 0 | 1,222,847,525 | 0.82% | ||
voter007 | 0 | 0 | 100% | ||
voter000 | 0 | 0 | 20% | ||
pet.society | 0 | 8,153,242,660 | 2% | ||
steemituplife | 0 | 569,131,612 | 25% | ||
bidesign | 0 | 10,795,111,774 | 100% | ||
moneytron | 0 | 41,204,818,562 | 100% | ||
bluerobo | 0 | 25,462,941,733 | 100% | ||
permaculturedude | 0 | 606,556,147 | 1.65% | ||
goodcontentbot | 0 | 798,553,120 | 15% | ||
samflow | 0 | 613,026,307 | 100% | ||
realgoodcontent | 0 | 890,250,681 | 100% | ||
cooperfelix | 0 | 4,290,777,663 | 15% | ||
bewithbreath | 0 | 4,587,424,287 | 3.57% | ||
cpt-sparrow | 0 | 32,157,251,278 | 100% | ||
bitcoinator | 0 | 1,549,302,624 | 50% | ||
korle | 0 | 1,032,015,512 | 100% | ||
knifer | 0 | 596,452,235 | 100% | ||
actifit-devil | 0 | 2,957,909,982 | 100% | ||
likwid | 0 | 29,677,884,566,707 | 100% | ||
steemindian | 0 | 1,286,876,765 | 6% | ||
sparstrumpf | 0 | 7,589,663,012 | 100% | ||
map10k | 0 | 22,759,770,947 | 10% | ||
triplea.bot | 0 | 3,878,625,926 | 12% | ||
steem.leo | 0 | 52,204,016,584 | 3.16% | ||
leo.voter | 0 | 51,843,855,176 | 3.2% | ||
freddio.sport | 0 | 2,029,317,395 | 15% | ||
mapxv | 0 | 10,465,605,324 | 3.3% | ||
leo.syndication | 0 | 1,352,730,833 | 3.3% | ||
one.life | 0 | 17,683,382,277 | 3.29% | ||
maxuvd | 0 | 1,959,781,634 | 3.3% | ||
maxuve | 0 | 13,774,373,540 | 3.3% | ||
mittwochsquickie | 0 | 678,110,719 | 60% | ||
gerbo | 0 | 0 | 3.3% | ||
gmlrecordz | 0 | 4,779,764,476 | 50% | ||
dominuus | 0 | 133,131,694 | 3.29% | ||
steemcityrewards | 0 | 19,226,369,704 | 3.3% | ||
fengchao | 0 | 750,687,611 | 1% |
:( more seriously, I don't think it should be a blind unvote all, just unvote the witnesses you voted to protect the chain.
author | howo |
---|---|
permlink | re-emrebeyler-q87x82 |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"peakd/2020.03.14"} |
created | 2020-04-03 15:19:15 |
last_update | 2020-04-03 15:19:15 |
depth | 1 |
children | 0 |
last_payout | 2020-04-10 15:19:15 |
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 | 124 |
author_reputation | 515,737,941,459,006 |
root_title | "A Python script to unvote top20 witnesses" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,693,804 |
net_rshares | 0 |
Funny :D
author | manniman |
---|---|
permlink | re-emrebeyler-q82wz3 |
category | witness-category |
json_metadata | {"tags":["witness-category"],"app":"peakd/2020.03.14"} |
created | 2020-03-31 22:25:54 |
last_update | 2020-03-31 22:25:54 |
depth | 1 |
children | 0 |
last_payout | 2020-04-07 22:25:54 |
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 | 8 |
author_reputation | 77,790,724,868,389 |
root_title | "A Python script to unvote top20 witnesses" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,658,513 |
net_rshares | 0 |