1. 购买机器。 2.安全组开放3000端口。 3. 安装docker 4. Start your Huginn container using docker run -it -p 3000:3000 huginn/huginn 5.通过ip:3000访问huginn。用户名和密码是默认值 6.导入scenario. 详情:https://www.jianshu.com/p/582ad1400d6e, scenario下载地址: https://pan.baidu.com/s/1jJiEmXK 注意有一点要修改,输出RSS agent中要添加link为你的服务器域名或ip,否则输出rss地址中域名为localhost
{ "type": "Agents::DataOutputAgent", "name": "输出RSS", "disabled": false, "guid": "1ea34bb7e56575e6c007bf2e2f48b990", "options": { "secrets": [ "weixin" ], "expected_receive_period_in_days": 2, "template": { "title": "订阅微信公众号(木西AlexanDENG)", "description": "将微信公众号(木西AlexanDENG)输出RSS", "item": { "title": "{{title}}", "description": "{{fulltext|regex_replace:'data-src','src'}}", "link": "{{url}}" }, "link": "http://yourdomainOrIP:3000" } }, "propagate_immediately": true
}, 7. 运行4个agent .在“输出RSS”agent中,就会有json和xml链接。如果你有域名,可以直接用xml为RSS地址。如果只有ip, 到feedburner.google.com 中去转化一下,将其输出作为RSS地址。 参考链接: 1. 如何高效地订阅微信公众号 2.docker安装 huginn 3.huginn原理简介
|