You are viewing a single comment's thread from:

RE: Python Libraries: HIVE Voting BOT - Duplicate Account and New Account Fixes

in STEMGeeks2 days ago

Just curious what libraries are you using in your voting script?

I use these..

import requests, os, random, pypyodbc, re
from datetime import datetime, timedelta
from decimal import Decimal

from langdetect import detect_langs
 from langdetect.lang_detect_exception import LangDetectException as Lang_e

 from beem import Hive
 from beem.account import Account
 from beem.vote import Vote
 from beem.exceptions import MissingKeyError
 from beem.comment import Comment
 from beem.instance import set_shared_blockchain_instance

Though some of the beem libraries are probably not used anymore. I have tried to phase out as many BEEM calls as I can due to it's deprecation.

do you use any type of control to the vote % be more elastic and adjust according to your vp ? if vp is to high it can go a above % or if it is too low maybe reducing the weights ?

No, the weights are determined not by the VP, but by the quality of the post (as much as automation will let me), with incentives for less delegation, the staked HP of the account vs the age of the account and by a random bonus value.

I am planning on adding a further bonus for lower KE ratios.

Sort:  

When you phase out the BEEM, what's the replacement?
Also: Would love to get whitelisted ;-)

Something new every day for me, was actually researching HPUD in combination with leofinance tag and the search brought me your python bot postings. Had no idea you were doing such stuff.

When you phase out the BEEM, what's the replacement?

For the moment nothing, unless I can figure out the lousy condenser code doc examples.

Also: Would love to get whitelisted ;-)

I don't see why not, your delegation % is high but not enough to stop the votes, and I won't be able to understand your posts as I am a lazy Englishman who doesn't speak any German besides knowing one to ten... just.

Nice avatar, do you look like that 😀

Thanks a lot :-)

!HUG

I also write in English or dual.

Nice avatar, do you look like that

It's based on me, yes. Got two posts with pictures of myself if you wanna compare:

https://peakd.com/hive-121566/@hannes-stoffel/unser-erstes-landerspiel-deeng

and

https://peakd.com/hive-125125/@hannes-stoffel/fighting-for-higher-wages

But about a year ago I switched to mostly wearing the flat-cap, especially when working so I added that feature to my avatar.

LOL, the avatar makes you look older than you appear to be, but otherwise it's quite epic!

Maybe an alternative is migrating your script to JS to use hivejs! I felt some limitations with beem that didn’t feel with hivejs!

There's very little BEEM calls left in it now. Most of the functions use the Condenser API, but with that the documentation is so abysmal I tend to struggle and so BEEM stays.. for now..

Regardless of the language it will be the same API calls.., or tell me otherwise?

I am not fluent in JS, but would not have an issue picking it up. I use Powershell all day at work, and Python when at home. One language is much like another, quirks aside.

It is the same API… we are talking about libs to get pre built functions hehhee . You can do all manually also

You can do all manually also

Oh I know.., but trawling through all that stuff, ack... not for me!

Just scrolling through after my earlier "where code" comment, and I'm surprised that since the last time I played with some HIVE python automation (feels like several years ago now) that BEEM is still all we have as a dedicated python-hive library?

I realise that JS is the code of the internet, but ... I don't want to learn! :D