You are viewing a single comment's thread from:

RE: Deep Follow - NodeJS/SteemJS

in #utopian-io7 years ago

I'm having the same trouble. I got some of the queries working:

https://github.com/AdamCox9/Steemit-NodeJS-Bot-Tutorial/blob/master/start.js

https://github.com/AdamCox9/Steemit-Follow-Bot/blob/master/follow_trending_authors.js

I hope these samples help. The code in GitHub is a newer version than in the articles.

Sort:  

I finally got somewhere with the the help of this:

https://github.com/steemit/steem-js/issues/256


steem.api.setOptions({ url: 'https://api.steemit.com' });

var query = {
    tag: 'blockchain',
    limit: 10
};

steem.api.getDiscussionsByTrending(query, function (err, discussions) {
  console.log(err, discussions);
});```

Thanks! I will try this out!

It works like a charm for me. I think it really opens up the world for some automation even on a read-only basis.

Heres some good code snippets you might find interesting: https://github.com/drov0/steemsnippets

The fact that it's documented is music to my eyes :) Looking forward to sharing some of my scripts soon!

Here are some really good examples to upvote, downvote, comment and transfer: https://steemit.com/steemjs/@fabien/steem-js-comment-upvote-downvote-transfert-you-wanted-it-you-got-it

Thanks, I'm going to play around more and I'll post my findings.

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 54370.47
ETH 2283.51
USDT 1.00
SBD 2.33