I use [Lightsteem](https://lightsteem.readthedocs.io) to test and query Hivemind endpoints. Structure-wise, Hive's RPC server part is compatible with the steemd RPC nodes. So, it's a simple configuration touch. # condenser_api Example to get followers of an account: ``` from lightsteem.client import Client c = Client(nodes=["https://hivemind.emrebeyler.me"]) followers = c.get_followers("emrebeyler", "", "blog", 10) print(followers) ``` *** You can find the list of methods [here](https://steemit.com/hivemind/@emrebeyler/introducing-a-public-hivemind-node). # hive_api - Example to get the database head state ``` from lightsteem.client import Client c = Client(nodes=["https://hivemind.emrebeyler.me"]) head_state = c('hive').db_head_state() print(head_state) ``` *** Output: ``` {'db_head_block': 29371204, 'db_head_time': '2019-01-11 20:15:51', 'db_head_age': 10} ``` *** - Auto-complete endpoint ``` from lightsteem.client import Client c = Client(nodes=["https://hivemind.emrebeyler.me"]) # search for accounts starting with dpoll, # from emrebeyler's perspective. accounts = c('hive').get_accounts_ac(["dpoll", "emrebeyler"]) print(accounts) ``` *** Output: ``` {'friend': [{'name': 'dpoll.curation', 'vote_sp': 24280, 'joined_at': '2018-11-04 09:21:42', 'reputation': 54.57, 'context': {'is_following': True}}, {'name': 'dpoll.sponsors', 'vote_sp': 0, 'joined_at': '2018-11-13 06:41:12', 'reputation': 25.0, 'context': {'is_following': True}}], 'global': [{'name': 'dpolly0', 'vote_sp': 0, 'joined_at': '2016-08-07 10:01:54', 'reputation': 25.0}, {'name': 'dpolls.app', 'vote_sp': 0, 'joined_at': '2018-08-27 08:05:54', 'reputation': 25.0}, {'name': 'dpoll.xyz', 'vote_sp': 0, 'joined_at': '2018-09-21 10:32:06', 'reputation': 25.0}, {'name': 'dpoll.test', 'vote_sp': 0, 'joined_at': '2018-11-23 20:53:15', 'reputation': 25.0}, {'name': 'dpoll.funds', 'vote_sp': 0, 'joined_at': '2018-11-19 06:58:42', 'reputation': 25.0}, {'name': 'dpoll.economy', 'vote_sp': 0, 'joined_at': '2018-05-05 14:55:45', 'reputation': 25.0}, {'name': 'dpoll.app', 'vote_sp': 0, 'joined_at': '2018-04-23 14:19:00', 'reputation': 25.0}, {'name': 'dpoll-xyz', 'vote_sp': 0, 'joined_at': '2018-11-16 08:50:45', 'reputation': 25.0}, {'name': 'dpoll', 'vote_sp': 0, 'joined_at': '2018-03-13 13:23:57', 'reputation': 25.0}]} ``` *** - get_accounts ``` from lightsteem.client import Client c = Client(nodes=["https://hivemind.emrebeyler.me"]) # retrieve basic data of the passed accounts accounts = c('hive').get_accounts([["foo", "bar"]]) print(accounts) ``` *** Output: ``` [{'name': 'foo', 'vote_sp': 0, 'joined_at': '2016-04-05 09:18:45', 'reputation': 25.0}, {'name': 'bar', 'vote_sp': 0, 'joined_at': '2016-05-01 14:59:12', 'reputation': 25.0}] ``` *** For the Beem fans, it's also possible with Beem's [internal GrapheneRPC client](https://steemit.com/hivemind/@holger80/re-isnochys-re-emrebeyler-introducing-a-public-hivemind-node-20190110t215153601z).
author | emrebeyler |
---|---|
permlink | using-lightsteem-to-query-hivemind |
category | hivemind |
json_metadata | {"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["hivemind","programming","lightsteem","development","busy"],"users":["emrebeyler","holger80"],"links":["https://lightsteem.readthedocs.io","https://steemit.com/hivemind/@emrebeyler/introducing-a-public-hivemind-node","https://steemit.com/hivemind/@holger80/re-isnochys-re-emrebeyler-introducing-a-public-hivemind-node-20190110t215153601z"],"image":[]} |
created | 2019-01-11 20:29:12 |
last_update | 2019-01-11 20:31:15 |
depth | 0 |
children | 6 |
last_payout | 2019-01-18 20:29:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 3.760 HBD |
curator_payout_value | 0.909 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,107 |
author_reputation | 448,535,049,068,622 |
root_title | " Using Lightsteem to query Hivemind" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,245,819 |
net_rshares | 9,703,009,027,498 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
field | 0 | 5,229,435,849 | 100% | ||
ausbitbank | 0 | 1,654,468,815,954 | 100% | ||
nichoros | 0 | 126,619,492,010 | 100% | ||
inertia | 0 | 1,505,628,074,991 | 100% | ||
busy.pay | 0 | 826,844,262,985 | 4.01% | ||
bukiland | 0 | 18,945,530,594 | 10% | ||
decebal2dac | 0 | 7,975,978,210 | 100% | ||
steven-patrick | 0 | 4,366,893,741 | 100% | ||
danielsaori | 0 | 72,553,578,631 | 100% | ||
toninux | 0 | 225,324,176 | 24.5% | ||
smasssh | 0 | 207,247,876,040 | 35% | ||
malay11 | 0 | 626,364,191 | 24.5% | ||
jakipatryk | 0 | 28,583,155,325 | 100% | ||
khairulmuammar | 0 | 10,341,347,526 | 50% | ||
ruel.cedeno | 0 | 4,310,878,743 | 100% | ||
pennsif | 0 | 33,444,708,295 | 15% | ||
lastozgur | 0 | 4,957,529,169 | 100% | ||
firatozbek | 0 | 4,508,744,411 | 100% | ||
jacekw | 0 | 7,959,075,028 | 50% | ||
crokkon | 0 | 47,965,161,473 | 50% | ||
accelerator | 0 | 19,100,537,993 | 1.29% | ||
smafey | 0 | 219,391,659 | 24.5% | ||
birddroppings | 0 | 2,469,157,683 | 10% | ||
jacobkaled | 0 | 84,958,401 | 24.5% | ||
isnochys | 0 | 7,902,459,791 | 13% | ||
sumsum007 | 0 | 244,493,282 | 24.5% | ||
rijalaronaceh | 0 | 65,749,847 | 1% | ||
maaz23 | 0 | 367,812,533 | 24.5% | ||
rightscomet | 0 | 90,600,772 | 24.5% | ||
nudgent | 0 | 98,573,883 | 24.5% | ||
unforgettable | 0 | 2,989,426,601 | 100% | ||
elchin | 0 | 693,751,013 | 100% | ||
emrebeyler | 0 | 869,282,797,063 | 100% | ||
seanlloyd | 0 | 296,264,105 | 1% | ||
steemtaker | 0 | 1,539,683,296 | 2% | ||
mrmaracucho | 0 | 222,860,351 | 49% | ||
zoltarian | 0 | 96,587,340,590 | 100% | ||
evilest-fiend | 0 | 1,705,142,140 | 50% | ||
tentalavera | 0 | 127,762,874 | 5% | ||
gokos | 0 | 380,957,842 | 100% | ||
enjoyy | 0 | 227,226,604 | 24.5% | ||
berkerpeksag | 0 | 1,575,366,877 | 100% | ||
aydant | 0 | 6,100,107,087 | 100% | ||
intelligencer | 0 | 0 | 100% | ||
tinowhale | 0 | 2,603,636,504 | 49% | ||
ewq | 0 | 208,466,234 | 6% | ||
lukecreed | 0 | 240,698,507 | 24.5% | ||
fromhell2sky | 0 | 8,391,225,796 | 24.5% | ||
ydavgonzalez | 0 | 38,709,971,989 | 100% | ||
mikefromtheuk | 0 | 10,176,493,503 | 100% | ||
sauronbey | 0 | 3,916,579,751 | 100% | ||
onursa | 0 | 391,775,142 | 100% | ||
googletr | 0 | 0 | 100% | ||
soyrosa | 0 | 87,610,918,261 | 50% | ||
portugalcoin | 0 | 6,897,838,392 | 15% | ||
chorock | 0 | 83,426,967,512 | 9% | ||
neokuduk | 0 | 3,584,216,935 | 100% | ||
literaturk | 0 | 436,148,149 | 100% | ||
holger80 | 0 | 405,022,255,862 | 73% | ||
uzerebru | 0 | 114,147,254 | 41% | ||
uzercanan | 0 | 203,814,490 | 45% | ||
ahmetmertugrul | 0 | 830,817,923 | 100% | ||
samedb | 0 | 458,678,081 | 100% | ||
evansbankx | 0 | 318,148,337 | 100% | ||
tdogvoid | 0 | 385,981,595 | 100% | ||
gentmartin | 0 | 909,606,030 | 10% | ||
tipitip | 0 | 716,996,574 | 100% | ||
akifane | 0 | 542,337,253 | 100% | ||
rasit | 0 | 436,103,982 | 100% | ||
gjones15 | 0 | 100,577,011 | 24.5% | ||
nagaclub | 0 | 92,506,244 | 24.5% | ||
ruh | 0 | 648,532,300 | 100% | ||
maveraunnehr | 0 | 383,056,112 | 100% | ||
yusrizakaria | 0 | 2,504,137,459 | 25% | ||
bulent1976 | 0 | 1,397,594,730 | 100% | ||
tolgahanuzun | 0 | 13,373,879,053 | 100% | ||
muratkbesiroglu | 0 | 298,257,674,691 | 100% | ||
sereze | 0 | 7,787,207,406 | 100% | ||
zcool | 0 | 188,051,585 | 10% | ||
carment | 0 | 98,431,098 | 24.5% | ||
effofex | 0 | 92,253,911 | 0.64% | ||
blaqboyikott | 0 | 91,284,539 | 24.5% | ||
qurator-tier-0 | 0 | 3,773,396,694 | 7.5% | ||
feronio | 0 | 1,147,010,426 | 100% | ||
hyroniz | 0 | 85,038,415 | 25% | ||
steeman220 | 0 | 80,084,930 | 24.5% | ||
we-are-asia | 0 | 3,979,398,424 | 100% | ||
kryptorero | 0 | 98,487,088 | 24.5% | ||
bahagia9 | 0 | 97,667,883 | 24.5% | ||
gydronium | 0 | 127,562,260 | 29.4% | ||
pinkwonder | 0 | 11,432,165,680 | 100% | ||
senseofhumor | 0 | 554,195,243 | 100% | ||
bilimkurgu | 0 | 152,443,868,227 | 100% | ||
hahajin | 0 | 0 | 100% | ||
abbyrich | 0 | 70,615,909 | 25% | ||
sbi5 | 0 | 83,347,746,734 | 16.92% | ||
sbd-fairy | 0 | 228,932,823 | 49% | ||
pablorg94 | 0 | 524,717,196 | 100% | ||
partiko | 0 | 291,014,556,613 | 3% | ||
sulwati | 0 | 97,839,937 | 24.5% | ||
swaze | 0 | 547,108,212 | 100% | ||
chichsopurve | 0 | 510,527,918 | 100% | ||
sutter | 0 | 250,111,951 | 24.5% | ||
neymaheadca | 0 | 533,796,998 | 100% | ||
ternutore | 0 | 531,981,026 | 100% | ||
blabessowood | 0 | 499,186,231 | 100% | ||
stefvougacho | 0 | 501,549,853 | 100% | ||
nieloagranca | 0 | 3,132,456,129 | 4% | ||
taylory | 0 | 535,690,022 | 100% | ||
ceruleanblue | 0 | 207,311,874 | 100% | ||
avamqnv2 | 0 | 523,141,419 | 100% | ||
yollardannotlar | 0 | 158,431,285 | 100% | ||
oliviahnl | 0 | 523,762,031 | 100% | ||
jacekw.dev | 0 | 2,732,853,795 | 40% | ||
beemtutorials | 0 | 355,039,486 | 100% | ||
glownortolor | 0 | 480,951,397 | 100% | ||
peglesuttseam | 0 | 535,177,829 | 100% | ||
avaudy | 0 | 498,667,227 | 100% | ||
morganit | 0 | 502,421,848 | 100% | ||
ali.yuce | 0 | 159,922,514 | 100% | ||
alvinvoo | 0 | 936,788,812 | 100% | ||
steemitbuzz | 0 | 91,591,454 | 1% | ||
nfc | 0 | 50,857,013,729 | 19% | ||
bluerobo | 0 | 4,765,887,789 | 100% | ||
steemtank | 0 | 2,509,644,324,998 | 100% | ||
n1hal1 | 0 | 99,330,082 | 25% | ||
goodcontentbot | 0 | 3,664,584,984 | 10% | ||
upvoteguild | 0 | 1,275,678,323 | 7.5% | ||
kggymlife | 0 | 2,126,793,976 | 15% |
<div class='pull-right'>https://cdn.steemitimages.com/DQmaHThyECGhEx8tSfHZbiMFRNYjJ35K92cDgiJjkzBUaJo/One%20sip%20of%20BEER%20for%20you.gif<p><sup><a href='https://steem-engine.com/?p=market&t=BEER'>View or trade </a> <code>BEER</code>.</sup></p></div><center><br> <p> Hey @emrebeyler, here is a little bit of <code>BEER</code> from @isnochys for you. Enjoy it!</p> <p>Learn how to <a href='https://steemit.com/beer/@beerlover/what-is-proof-of-stake-with-beer'>earn FREE BEER each day </a> by staking.</p> </center><div></div>
author | beerlover |
---|---|
permlink | re-using-lightsteem-to-query-hivemind-20200111t060713z |
category | hivemind |
json_metadata | "{"app": "beem/0.21.1"}" |
created | 2020-01-11 06:07:15 |
last_update | 2020-01-11 06:07:15 |
depth | 1 |
children | 0 |
last_payout | 2020-01-18 06:07: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 | 526 |
author_reputation | 25,806,928,345,618 |
root_title | " Using Lightsteem to query Hivemind" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 94,284,473 |
net_rshares | 0 |
One year old !BEER
author | isnochys |
---|---|
permlink | re-using-lightsteem-to-query-hivemind-20200111t060703z |
category | hivemind |
json_metadata | "{"app": "beem/0.20.23"}" |
created | 2020-01-11 06:07:06 |
last_update | 2020-01-11 06:07:06 |
depth | 1 |
children | 0 |
last_payout | 2020-01-18 06:07:06 |
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 | 18 |
author_reputation | 47,894,613,197,575 |
root_title | " Using Lightsteem to query Hivemind" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 94,284,471 |
net_rshares | 0 |
Thank you so much for participating the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!
author | partiko |
---|---|
permlink | re-using-lightsteem-to-query-hivemind-20190111t223117 |
category | hivemind |
json_metadata | "" |
created | 2019-01-11 22:31:18 |
last_update | 2019-01-11 22:31:18 |
depth | 1 |
children | 0 |
last_payout | 2019-01-18 22:31:18 |
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 | 210 |
author_reputation | 39,207,160,334,751 |
root_title | " Using Lightsteem to query Hivemind" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,249,791 |
net_rshares | 0 |
This post has been included in the latest edition of [**SOS Daily News**](https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem11january2019-56l4079453) - a digest of all you need to know about the State of Steem. *** * *Editor of the [**The State of Steem SoS Daily News**](https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem11january2019-56l4079453).* * *Promoter of [**The State of Steem SoS Weekly Forums**](https://steemit.com/dtube/@pennsif/k8811wa6).* * *Editor of the [**weekly listing of steem radio shows, podcasts & social broadcasts**](https://steemit.com/mspwaves/@pennsif/schedule-of-radio-shows-podcasts-and-social-broadcasts-supported-by-dsound-week-beginning-7-january-2019).* * *Founder of the [**A Dollar A Day**](https://steemit.com/adollaraday/@adollaraday/a-dollar-a-day-charitable-giving-project-ususd-5000-donated-in-8-months-we-made-it) charitable giving project.* ***
author | pennsif |
---|---|
permlink | re-emrebeyler-using-lightsteem-to-query-hivemind-20190112t143550149z |
category | hivemind |
json_metadata | {"tags":["hivemind"],"links":["https://steemit.com/steem/@pennsif/sosdailynewsnewsaboutthestateofsteem11january2019-56l4079453","https://steemit.com/dtube/@pennsif/k8811wa6","https://steemit.com/mspwaves/@pennsif/schedule-of-radio-shows-podcasts-and-social-broadcasts-supported-by-dsound-week-beginning-7-january-2019","https://steemit.com/adollaraday/@adollaraday/a-dollar-a-day-charitable-giving-project-ususd-5000-donated-in-8-months-we-made-it"],"app":"steemit/0.1"} |
created | 2019-01-12 14:35:51 |
last_update | 2019-01-12 14:35:51 |
depth | 1 |
children | 0 |
last_payout | 2019-01-19 14:35:51 |
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 | 938 |
author_reputation | 636,410,097,572,565 |
root_title | " Using Lightsteem to query Hivemind" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,277,192 |
net_rshares | 0 |
I really like your posts. I just at the beginning of the exploring of steem api with python, now I see yet one python library for it, additional to beem and steem-python.
author | pinkwonder |
---|---|
permlink | re-emrebeyler-using-lightsteem-to-query-hivemind-20190113t192743357z |
category | hivemind |
json_metadata | {"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["hivemind"],"users":[],"links":[],"image":[]} |
created | 2019-01-13 19:27:45 |
last_update | 2019-01-13 19:27:45 |
depth | 1 |
children | 1 |
last_payout | 2019-01-20 19:27:45 |
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 | 170 |
author_reputation | 12,337,737,438,559 |
root_title | " Using Lightsteem to query Hivemind" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,329,214 |
net_rshares | 0 |
Glad you like my content :-)
author | emrebeyler |
---|---|
permlink | re-pinkwonder-re-emrebeyler-using-lightsteem-to-query-hivemind-20190114t074414332z |
category | hivemind |
json_metadata | {"tags":["hivemind"],"app":"steemit/0.1"} |
created | 2019-01-14 07:44:15 |
last_update | 2019-01-14 07:44:15 |
depth | 2 |
children | 0 |
last_payout | 2019-01-21 07:44: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 | 28 |
author_reputation | 448,535,049,068,622 |
root_title | " Using Lightsteem to query Hivemind" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,351,289 |
net_rshares | 0 |