Huginn中常用的Agent

本文介绍了Huginn中几种常用的Agent,包括Website Agent用于抓取和解析网页内容,Phantom Js Cloud Agent生成PhantomJs云链接以渲染JavaScript网页,Csv Agent用于CSV数据的解析和序列化,Trigger Agent监控特定Event值,Event Formatting Agent格式化事件,Post Agent发送POST请求,以及Data Output Agent将事件输出为RSS或JSON。
摘要由CSDN通过智能技术生成

Agent 是 Huginn 中的事件,可以理解为派出的一个小机器人,Agent都可以按照频率和定时的时间点来触发,常用的Agent有以下几个:

  1. Website Agent

The Website Agent scrapes a website, XML document, or JSON feed and creates Events based on the results.

是抓取网站的工具,可以解析网页、XML文档和json数据的节点。

以下截自官网说明:

Specify a url and select a mode for when to create Events based on the scraped data, either all, on_change, or merge (if fetching based on an Event, see below).

The url option can be a single url, or an array of urls (for example, for multiple pages with the exact same structure but different content to scrape).

The WebsiteAgent can also scrape based on incoming events.

  • Set the url_from_event option to a Liquid template to generate the url to access based on the Event. (To fetch the url in the Event’s url key, for example, set url_from_event to { { url }}.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值