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