json HD-Area.org Huginn Scenario

Posted

tags:

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

{
  "schema_version": 1,
  "name": "HDAreaOrg",
  "description": "No description provided",
  "source_url": false,
  "guid": "0d737f7bc26134af7657aa612b9b623f",
  "tag_fg_color": "#e9e9e9",
  "tag_bg_color": "#2491e4",
  "exported_at": "2016-04-27T20:29:37Z",
  "agents": [
    {
      "type": "Agents::WebsiteAgent",
      "name": "[HDArea] 1 Load Movies [Top Releases]",
      "disabled": false,
      "guid": "14ca86fb783a038e07d3bc01a06cf370",
      "options": {
        "expected_update_period_in_days": "2",
        "url": "http://www.hd-area.org/index.php?s=top-rls",
        "type": "html",
        "mode": "on_change",
        "extract": {
          "title": {
            "css": ".topbox .boxlinks #title a",
            "value": "@title"
          },
          "url": {
            "css": ".topbox .boxlinks #title a",
            "value": "@href"
          }
        }
      },
      "schedule": "every_10m",
      "keep_events_for": 21600,
      "propagate_immediately": false
    },
    {
      "type": "Agents::WebsiteAgent",
      "name": "[HDArea] 1 Load Movies [Home]",
      "disabled": false,
      "guid": "30ea7da94985d9c7b481ec42518e7ba4",
      "options": {
        "expected_update_period_in_days": "2",
        "url": "http://www.hd-area.org/index.php",
        "type": "html",
        "mode": "on_change",
        "extract": {
          "title": {
            "css": ".topbox .boxlinks #title a",
            "value": "@title"
          },
          "url": {
            "css": ".topbox .boxlinks #title a",
            "value": "@href"
          }
        }
      },
      "schedule": "every_10m",
      "keep_events_for": 21600,
      "propagate_immediately": false
    },
    {
      "type": "Agents::WebsiteAgent",
      "name": "[HDArea] 1 Load Movies [Cinedubs]",
      "disabled": false,
      "guid": "3d1971bf19858c5a1f986a8cb805d9c7",
      "options": {
        "expected_update_period_in_days": "2",
        "url": "http://www.hd-area.org/index.php?s=cinedubs",
        "type": "html",
        "mode": "on_change",
        "extract": {
          "title": {
            "css": ".topbox .boxlinks #title a",
            "value": "@title"
          },
          "url": {
            "css": ".topbox .boxlinks #title a",
            "value": "@href"
          }
        }
      },
      "schedule": "every_10m",
      "keep_events_for": 21600,
      "propagate_immediately": false
    },
    {
      "type": "Agents::DataOutputAgent",
      "name": "[HDArea] 4 Data Output",
      "disabled": false,
      "guid": "3e326c3d59fc79365512c2186a090d4b",
      "options": {
        "secrets": [
          "movies"
        ],
        "events_to_show": "1000",
        "expected_receive_period_in_days": 2,
        "template": {
          "title": "HD-Area.org",
          "description": "Qualität für alle Sinne",
          "item": {
            "title": "{{title}}",
            "ul": "{{url_ul}}",
            "so": "{{url_so}}",
            "url": "{{url}}"
          }
        }
      },
      "keep_events_for": 21600,
      "propagate_immediately": false
    },
    {
      "type": "Agents::WebsiteAgent",
      "name": "[HDArea] 3 Extract Download Links",
      "disabled": false,
      "guid": "a95897b51755845e76490e0908c955c5",
      "options": {
        "expected_update_period_in_days": "2",
        "url_from_event": "{{url}}",
        "type": "html",
        "mode": "merge",
        "extract": {
          "url_ul": {
            "xpath": "//div[@class='beschreibung']//a[contains(@href,'filecrypt.cc')][contains(translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'uploaded')]/@href",
            "value": "."
          },
          "url_so": {
            "xpath": "//div[@class='beschreibung']//a[contains(@href,'filecrypt.cc')][contains(translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),'share')]/@href",
            "value": "."
          }
        }
      },
      "schedule": "never",
      "keep_events_for": 604800,
      "propagate_immediately": false
    },
    {
      "type": "Agents::DeDuplicationAgent",
      "name": "[HDArea] 2 DeDupe",
      "disabled": false,
      "guid": "d7c8e2ef1560c4f04e10861a497dc6ba",
      "options": {
        "property": "{{title}}",
        "lookback": "0",
        "expected_update_period_in_days": "1"
      },
      "keep_events_for": 21600,
      "propagate_immediately": false
    }
  ],
  "links": [
    {
      "source": 0,
      "receiver": 5
    },
    {
      "source": 1,
      "receiver": 5
    },
    {
      "source": 2,
      "receiver": 5
    },
    {
      "source": 4,
      "receiver": 3
    },
    {
      "source": 5,
      "receiver": 4
    }
  ],
  "control_links": [

  ]
}

以上是关于json HD-Area.org Huginn Scenario的主要内容,如果未能解决你的问题,请参考以下文章

json Huginn RSS Scraper

一些有用的huginn Agent

重启部署在阿里云上的huginn

JSONArray jsonary = (JSONArray) JSONObject.parse(s); 是啥意思

克隆 JSON

json 我的Peet's Coffees