Details
utopian link
github link
SteemBotAnalysis is using two main calls to steemdb with steem.js to read data.
API calls
Here there is no problem. We read the complete result array and can get the result.authperm variable as an array.
Then the authperm variable is splitted into author and permlink arrays with
which means our ap[n][0] array contains n'th author name and ap[n][1] array contains n'th permlink.
Also, you can get the array of upvote times with result[n].time which gives you the upvote time of n'th autperm.
This is where things get complicated.
This call is used to get the post date.
It requests the author and permlink to search.
This means, we have to for a loop (for-next, while etc..) to send each author + permlink to the function and request result from steemdb.
This doesn't function with the conventional loop because once the connection is not assured you get a null array as return.
The call is asynchronous.
Components
In the working project, the problem is solved manually.
. Read the steem data with the loop
. Write the data read to innerHTML
. Visually control if the data writing to innrHTML is finished.
. As it finishes push another button to calculate.
. Read from innerHTML all the data and put them in array
. Process the data with normal for-next loop since it is now synch. function.
To-do
- Find a process to eliminate the visual check and eliminate the calculate button.
Define global arrays for
. author
. permlink
. upvote time
. post time
and make sure these are accesable and complete to be processed from other functions. - Find a method for visually show the connection status, warn the user if connection not established.
Deadline
No deadline proposed.
Communication
You can contact me from :
- Discord :
- SteemIt :
- utopian.io:
Credits and Advice
for more information on steem.js I strongly recommend to check 's tutorials at https://utopian.io/@stoodkev
Thank you very much for any contrubution.
FD.
Posted on Utopian.io - Rewarding Open Source Contributors