json Huginn RSS Scraper

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json Huginn RSS Scraper相关的知识,希望对你有一定的参考价值。

{
  "name": "RSS Scraper",
  "description": "RSS Filter & Builder",
  "source_url": false,
  "guid": "",
  "tag_fg_color": "#ffffff",
  "tag_bg_color": "#5bc0de",
  "exported_at": "2015-08-04T18:19:09Z",
  "agents": [
    {
      "type": "Agents::DataOutputAgent",
      "name": "RSS Output",
      "disabled": false,
      "guid": "1ff8215e35ae7c52ba1aa3af9b060518",
      "options": {
        "secrets": [
          "secret-token"
        ],
        "expected_receive_period_in_days": 2,
        "template": {
          "title": "[Title]",
          "description": "[Description]",
          "item": {
            "title": "{{title}}",
            "description": "{{description}}",
            "link": "{{url}}"
          }
        }
      },
      "keep_events_for": 1,
      "propagate_immediately": true
    },
    {
      "type": "Agents::WebsiteAgent",
      "name": "RSS Scraper",
      "disabled": false,
      "guid": "9efe8e90da82df02a8cc72edf4181d2e",
      "options": {
        "expected_update_period_in_days": 7,
        "url": "[URL]",
        "type": "xml",
        "mode": "on_change",
        "extract": {
          "url": {
            "css": "item link",
            "value": ".//text()"
          },
          "title": {
            "css": "item title",
            "value": ".//text()"
          }
        }
      },
      "schedule": "every_2h",
      "keep_events_for": 1,
      "propagate_immediately": false
    },
    {
      "type": "Agents::WebsiteAgent",
      "name": "Website Scraper",
      "disabled": false,
      "guid": "f9f02c1d3e59577c26e6d901d24b04ca",
      "options": {
        "expected_update_period_in_days": "2",
        "url": "{{url}}",
        "type": "html",
        "mode": "all",
        "clean": "false",
        "extract": {
          "description": {
            "css": "[.item_body]",
            "value": "./node()"
          },
          "title": {
            "css": "[.item_title]",
            "value": ".//text()"
          },
          "url": {
            "css": "[link]",
            "value": ".//text()"
          }
        }
      },
      "schedule": "every_2h",
      "keep_events_for": 1,
      "propagate_immediately": true
    }
  ],
  "links": [
    {
      "source": 1,
      "receiver": 2
    },
    {
      "source": 2,
      "receiver": 0
    }
  ]
}

以上是关于json Huginn RSS Scraper的主要内容,如果未能解决你的问题,请参考以下文章

json SerienJunkies Huginn场景

json HD-Area.org Huginn Scenario

json 用于Micro Web Scraper配置文件的JSONSchema

重启部署在阿里云上的huginn

Image Scraper 将所有附件从单个消息推送到数组

我可以用JSON提供RSS吗?