关于机器人开发的一点资料

in cn •  8 years ago  (edited)
目前比较好用的,我知道的有俩个库。

python语言的:python-steemlib, 在这里:https://github.com/xeroc?tab=repositories
还有一个是nodejs的:https://www.npmjs.com/package/steem

我比较喜欢Nodejs,说说Nodejs。
1,Nodejs在linux和windows 下都可以运行,安装资料一大堆,不说了。
2,安装好Nodejs后,安装这个steem模块:$ npm install steem --save
3,测试一下是否成功,将下列代码保存成一个xxx.js文件

    var Steem = require('steem');
    var steem = new Steem();    
    steem.getAccounts(['ned', 'dan'], function(err, result) {
        console.log(err, result);
    });

4,运行,执行命令: node xxx.js
5,如果成功,就返回了ned,dan的账户信息。

具体的api列表,看它的文档:https://github.com/adcpm/steem/tree/master/doc

最后,以下是一些这几天收集到的有用的帖子:

https://steemit.com/steem/@xeroc/upvote-bot-in-less-than-10-lines-of-code

https://steemit.com/steem/@xeroc/notification-bot-for-steem-in-30-lines-of-code

https://github.com/xeroc?tab=repositories

https://steemit.com/theoretical/@theoretical/how-to-use-the-steem-api

https://steemit.com/steem/@xeroc/steem-api

https://github.com/steemit/steem/blob/master/libraries/app/include/steemit/app/database_api.hpp

https://steemit.com/steem/@complexring/steem-autovote-bot

https://www.npmjs.com/package/steem

https://steemit.com/development/@nphacker/top-3-programming-languages-to-develop-apis-external-tools-and-mobile-apps-websites-for-steemit-no-prob-tech

https://steemit.com/steem/@nenad-ristic/upvote-bots-and-the-tragedy-of-the-commons

==============Hot resources / 中文区热门讨论===============

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  8 years ago Reveal Comment
  ·  8 years ago Reveal Comment

!cheetah replyban

Okay, I have reply banned @backetri.

谢谢分享,有你更精彩!

谢谢,学习了

资料整理的很好,多谢分享。希望更多的开发者加入。
steemit才刚刚开始,我们开发者现在能够做很多的事情,黄金时间啊。

是的,现在每天都有好多新的steem相关的工具网站出来。我准备赶紧学一下,node以前还用过,熟悉一下steem的api。

祝你好运