json SerienJunkies Huginn场景
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json SerienJunkies Huginn场景相关的知识,希望对你有一定的参考价值。
{
"schema_version": 1,
"name": "SerienJunkies",
"description": "No description provided",
"source_url": false,
"guid": "6e7fc2ab9dcb0fa63217f2c52f4b0685",
"tag_fg_color": "#8a3207",
"tag_bg_color": "#cccccc",
"exported_at": "2016-04-27T20:18:33Z",
"agents": [
{
"type": "Agents::WebsiteAgent",
"name": "[SJ] 1 Load Episodes Feed Details",
"disabled": false,
"guid": "0d4dd1cb32afc2ae58440f16d28ebcc7",
"options": {
"expected_update_period_in_days": "2",
"url": "http://serienjunkies.org/xml/feeds/episoden.xml",
"type": "xml",
"mode": "on_change",
"extract": {
"title": {
"css": "item title",
"value": "substring-after(.,\"] \")"
},
"url": {
"css": "item link",
"value": ".//text()"
},
"lang": {
"css": "item title",
"value": "substring-after(substring-before(.,\"] \"), \"[\")"
}
}
},
"schedule": "every_10m",
"keep_events_for": 21600,
"propagate_immediately": false
},
{
"type": "Agents::WebsiteAgent",
"name": "[SJ] 3 Extract Download Links",
"disabled": false,
"guid": "4992cc2d196fe3ecc619834d5dc69a0f",
"options": {
"expected_update_period_in_days": "2",
"url_from_event": "{{url}}",
"type": "xml",
"mode": "merge",
"extract": {
"url_ul": {
"xpath": "//*[contains(strong,\"{{title}}\")]/a[contains(@href,\"ul_\")]/@href",
"value": "."
},
"url_so": {
"xpath": "//*[contains(strong,\"{{title}}\")]/a[contains(@href,\"so_\")]/@href",
"value": "."
}
}
},
"schedule": "never",
"keep_events_for": 604800,
"propagate_immediately": false
},
{
"type": "Agents::DeDuplicationAgent",
"name": "[SJ] 2 DeDupe Feed",
"disabled": false,
"guid": "c48a27c745714952331e73089c2cb990",
"options": {
"property": "{{title}}",
"lookback": "0",
"expected_update_period_in_days": "1"
},
"keep_events_for": 21600,
"propagate_immediately": false
},
{
"type": "Agents::DataOutputAgent",
"name": "[SJ] 4 Data Output",
"disabled": false,
"guid": "ecde347076717a5f41bbd6e861dc6a16",
"options": {
"secrets": [
"episodes"
],
"events_to_show": "1000",
"expected_receive_period_in_days": 2,
"template": {
"title": "Serienjunkies Episoden-Feed",
"description": "Bei Serienjunkies gibt es ueber 3000 Serien kostenlos zum Download auf Uploaded.net & co und + taeglich neue Updates",
"item": {
"title": "{{title}}",
"description": "{{title}}",
"link": "{{url}}",
"ul": "{{url_ul}}",
"so": "{{url_so}}",
"lang": "{{lang}}"
}
}
},
"keep_events_for": 21600,
"propagate_immediately": false
}
],
"links": [
{
"source": 0,
"receiver": 2
},
{
"source": 1,
"receiver": 3
},
{
"source": 2,
"receiver": 1
}
],
"control_links": [
]
}
以上是关于json SerienJunkies Huginn场景的主要内容,如果未能解决你的问题,请参考以下文章
json HD-Area.org Huginn Scenario
python中json文件处理涉及的四个函数json.dumps()和json.loads()json.dump()和json.load()的区分