Hey everybody... I've been on a huge JavaScript and NodeJS coding kick over the last 30 days. JavaScript has come a long way and I wanted to really update my working knowledge of it. I figured while I was at it, I was really interested to see what NodeJS had to offer on the backend. I've been having a lot of fun doing the 100DaysOfCode challenge on Twitter and focusing mainly on JavaScript and NodeJS... I already set up a Twitter bot using NodeJS https://twitter.com/NewsCryptoBot It posts the bitcoin price every hour and the days headlines each night. I thought it would be fun to add some Steemit features to the bot too. I also have some ideas to include a Steemit section on my website. So my question is, does anyone know of any tutorials on utilizing JavaScript and NodeJS with Steemit / STEEM. I found this github https://github.com/steemit/steem-js I'm new to dealing with JSON and have a little experience dealing with API's. I've been fumbling around with it and would love to see a Youtube or Dtube or even read a tutorial or two. Not finding much. If anyone knows of any good tutorials dealing with the steem-js github and any good accounts to follow dealing with this topic I'd appreciate the help greatly. Thanks :)
author | the-bitcoin-dood |
---|---|
permlink | anybody-know-of-any-steem-steemit-javascript-nodejs-tutorials |
category | steem |
json_metadata | {"tags":["steem","steemit","javascript","stem"],"links":["https://twitter.com/NewsCryptoBot","https://github.com/steemit/steem-js"],"app":"steemit/0.1","format":"markdown"} |
created | 2019-10-14 20:01:24 |
last_update | 2019-10-14 20:01:24 |
depth | 0 |
children | 8 |
last_payout | 2019-10-21 20:01:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.108 HBD |
curator_payout_value | 1.093 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,247 |
author_reputation | 178,762,640,539,548 |
root_title | "Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 91,556,893 |
net_rshares | 8,418,371,772,731 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kushed | 0 | 216,171,171,743 | 100% | ||
kevinwong | 0 | 2,206,237,637,143 | 25% | ||
kenny-crane | 0 | 122,450,189,759 | 25% | ||
inertia | 0 | 3,705,389,571 | 10% | ||
cmp2020 | 0 | 34,215,876,757 | 45% | ||
steevc | 0 | 104,478,737,315 | 31.25% | ||
doitvoluntarily | 0 | 14,396,202,985 | 100% | ||
jacobts | 0 | 6,851,023,869 | 20% | ||
whatsup | 0 | 327,522,377,745 | 32% | ||
disregardfiat | 0 | 32,286,523,679 | 40% | ||
remlaps1 | 0 | 194,388,407,458 | 45% | ||
cryplectibles | 0 | 22,182,448,407 | 100% | ||
missk | 0 | 527,668,199 | 100% | ||
edb | 0 | 4,281,094,481 | 15.62% | ||
steemfeed | 0 | 7,613,759,587 | 50% | ||
cub2 | 0 | 2,964,656,355 | 45% | ||
fredrikaa | 0 | 2,804,485,469,448 | 100% | ||
kryptokayden | 0 | 3,113,232,467 | 100% | ||
crokkon | 0 | 37,994,640,430 | 50% | ||
doifeellucky | 0 | 505,929,321,204 | 100% | ||
b00m | 0 | 25,779,241,407 | 16% | ||
murdermystery | 0 | 13,440,378,382 | 40% | ||
lastditch | 0 | 21,682,635 | 9% | ||
roundhere | 0 | 6,968,122,262 | 50% | ||
adoptaminnow | 0 | 70,154,999 | 100% | ||
thejbullfrog | 0 | 580,999,833 | 100% | ||
slobberchops | 0 | 277,162,090,880 | 15% | ||
enforcer48 | 0 | 39,153,822,473 | 15% | ||
soma909 | 0 | 5,353,757,421 | 100% | ||
mrnightmare89 | 0 | 2,269,115,654 | 16% | ||
chops.support | 0 | 50,938,894,682 | 30% | ||
remlaps-lite | 0 | 6,901,545,430 | 45% | ||
courtneyjensen | 0 | 579,051,536 | 100% | ||
marconisnghtmr | 0 | 603,934,531 | 100% | ||
nedshare | 0 | 222,475,514 | 100% | ||
trailreward | 0 | 850,878,594 | 9% | ||
shitcoiner | 0 | 14,015,457,593 | 100% | ||
yff | 0 | 9,842,379,304 | 50% | ||
dmacs | 0 | 149,684,875 | 100% | ||
ruggedbeardmedia | 0 | 580,458,572 | 100% | ||
chunkysoupsvc | 0 | 12,795,443,493 | 100% | ||
nerdvania | 0 | 564,606,258 | 100% | ||
mildredcat | 0 | 9,837,082,976 | 93.75% | ||
mellowrain | 0 | 605,042,043 | 100% | ||
bonfirepit | 0 | 735,517,184 | 100% | ||
digitalplaya | 0 | 556,458,698 | 100% | ||
spoiledvisuals | 0 | 548,315,447 | 100% | ||
enjoyeverything | 0 | 625,776,814 | 100% | ||
concreteshallows | 0 | 574,994,002 | 100% | ||
anti-spammer | 0 | 298,443,122 | 100% | ||
frugalgamer | 0 | 704,944,084 | 100% | ||
crinkleberrydlt | 0 | 555,308,904 | 100% | ||
povertyproject | 0 | 544,640,062 | 100% | ||
stormriders | 0 | 543,324,225 | 100% | ||
theresteemer5000 | 0 | 562,637,981 | 100% | ||
communitycharge | 0 | 654,671,437 | 100% | ||
steemadventuresp | 0 | 628,751,692 | 100% | ||
pollingstation | 0 | 564,618,025 | 100% | ||
steem.polls | 0 | 564,635,957 | 100% | ||
politicalpolls | 0 | 568,622,037 | 100% | ||
musicpolls | 0 | 559,679,623 | 100% | ||
foodpolls | 0 | 559,294,712 | 100% | ||
vxc | 0 | 2,257,292,505 | 96% | ||
adsup | 0 | 1,272,956,842,523 | 35% | ||
curation.stem | 0 | 761,727,567 | 75% | ||
escapadesupplies | 0 | 546,771,145 | 100% | ||
stemd | 0 | 67,447,342 | 30% | ||
yggdrasil.laguna | 0 | 348,927,694 | 70% |
.
author | crokkon |
---|---|
permlink | pzdu1v |
category | steem |
json_metadata | "{"app": ""}" |
created | 2019-10-14 20:53:51 |
last_update | 2022-09-18 07:35:36 |
depth | 1 |
children | 2 |
last_payout | 2019-10-21 20:53: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 | 1 |
author_reputation | 81,214,366,861,104 |
root_title | "Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 91,558,136 |
net_rshares | 5,609,436,351 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ismailkah | 0 | 5,609,436,351 | 25% |
Awesome! Thanks.
author | the-bitcoin-dood |
---|---|
permlink | pzdwur |
category | steem |
json_metadata | {"app":"steemit/0.1"} |
created | 2019-10-14 21:54:27 |
last_update | 2019-10-14 21:54:27 |
depth | 2 |
children | 0 |
last_payout | 2019-10-21 21:54:27 |
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 | 16 |
author_reputation | 178,762,640,539,548 |
root_title | "Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 91,559,530 |
net_rshares | 0 |
Thank you very much! Those links are incredibly helpful!
author | the-bitcoin-dood |
---|---|
permlink | pzdy20 |
category | steem |
json_metadata | {"app":"steemit/0.1"} |
created | 2019-10-14 22:20:24 |
last_update | 2019-10-14 22:20:24 |
depth | 2 |
children | 0 |
last_payout | 2019-10-21 22:20:24 |
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 | 56 |
author_reputation | 178,762,640,539,548 |
root_title | "Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 91,560,034 |
net_rshares | 0 |
https://developers.steem.io/tutorials/#tutorials-javascript The js tutorials are primarily based on [dsteem](https://github.com/jnordberg/dsteem) for browser front-end, though.
author | inertia |
---|---|
permlink | pzdu3z |
category | steem |
json_metadata | {"tags":["steem","stem"],"links":["https://developers.steem.io/tutorials/#tutorials-javascript","https://github.com/jnordberg/dsteem"],"app":"stemgeeks/0.1","canonical_url":"https://stemgeeks.net/@inertia/pzdu3z"} |
created | 2019-10-14 20:55:12 |
last_update | 2019-10-14 20:55:12 |
depth | 1 |
children | 1 |
last_payout | 2019-10-21 20:55:12 |
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 | 177 |
author_reputation | 346,568,901,399,561 |
root_title | "Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 91,558,162 |
net_rshares | 0 |
Thanks that's been pretty helpful.
author | the-bitcoin-dood |
---|---|
permlink | pzdwvp |
category | steem |
json_metadata | {"app":"steemit/0.1"} |
created | 2019-10-14 21:55:00 |
last_update | 2019-10-14 21:55:00 |
depth | 2 |
children | 0 |
last_payout | 2019-10-21 21:55:00 |
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 | 34 |
author_reputation | 178,762,640,539,548 |
root_title | "Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 91,559,536 |
net_rshares | 0 |
UPDATE: So I can call my JSON data here... https://steemit.com/@the-bitcoin-dood.json I can get just about any info I don't need... Wallet balance, profile data... Does anyone know how I pull a list of posts? Say the last 5 things I posted? I found post_history : "post_history":[ ], but when I pull it up in console.log I just get the brackets. function steemIt() { request({ url:"https://steemit.com/@the-bitcoin-dood.json", json:true }, function(error, response, body){ var getData = body.user.post_history; console.log(getData); }) } result in node: c:\Node_Projects\steemit>node steemit.js []
author | the-bitcoin-dood |
---|---|
permlink | pzdxhw |
category | steem |
json_metadata | {"links":["https://steemit.com/@the-bitcoin-dood.json"],"app":"steemit/0.1"} |
created | 2019-10-14 22:08:21 |
last_update | 2019-10-14 22:08:21 |
depth | 1 |
children | 2 |
last_payout | 2019-10-21 22:08:21 |
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 | 643 |
author_reputation | 178,762,640,539,548 |
root_title | "Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 91,559,809 |
net_rshares | 0 |
.
author | crokkon |
---|---|
permlink | pzfavu |
category | steem |
json_metadata | "{"app": ""}" |
created | 2019-10-15 15:55:03 |
last_update | 2022-09-18 07:35:30 |
depth | 2 |
children | 1 |
last_payout | 2019-10-22 15:55:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.018 HBD |
curator_payout_value | 0.017 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1 |
author_reputation | 81,214,366,861,104 |
root_title | "Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 91,583,243 |
net_rshares | 207,352,434,926 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
the-bitcoin-dood | 0 | 26,947,094,374 | 100% | ||
maarnio | 0 | 174,760,674,409 | 35% | ||
ismailkah | 0 | 5,644,666,143 | 25% |
Thanks for all the help! I just added both links to my notes. I've got some reading and experimenting to do :)
author | the-bitcoin-dood |
---|---|
permlink | pzfdqo |
category | steem |
json_metadata | {"app":"steemit/0.1"} |
created | 2019-10-15 16:56:48 |
last_update | 2019-10-15 16:56:48 |
depth | 3 |
children | 0 |
last_payout | 2019-10-22 16:56: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 | 110 |
author_reputation | 178,762,640,539,548 |
root_title | "Anybody Know of Any Steem / Steemit, JavaScript / NodeJS Tutorials?" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 91,584,934 |
net_rshares | 0 |