Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "schema_version": 1,
- "name": "PhantomJs Cloud Demo",
- "description": "Example usage with PhantomJs Cloud (https://phantomjscloud.com/).\r\nYou'll need to sign up and get an API key for this to work.",
- "source_url": false,
- "guid": "32329783da28399392645cff5a14ab9f",
- "tag_fg_color": "#ffffff",
- "tag_bg_color": "#5bc0de",
- "icon": null,
- "exported_at": "2016-12-21T16:30:44Z",
- "agents": [
- {
- "type": "Agents::DataOutputAgent",
- "name": "PhantomJS Cloud - Out - RSS",
- "disabled": false,
- "guid": "37094003a5077e78ec3114a475d2382c",
- "options": {
- "secrets": [
- "phantom"
- ],
- "expected_receive_period_in_days": 2,
- "template": {
- "title": "XKCD comics as a feed",
- "description": "This is a feed of recent XKCD comics, generated by Huginn",
- "item": {
- "title": "{{title}}",
- "description": "{{body}}"
- }
- }
- },
- "propagate_immediately": false
- },
- {
- "type": "Agents::WebsiteAgent",
- "name": "PhantomJS Cloud - Process - Fetch Page",
- "disabled": false,
- "guid": "3bc94a9d728abd43439c797518089513",
- "options": {
- "expected_update_period_in_days": "2",
- "url_from_event": "{{url}}",
- "type": "html",
- "mode": "on_change",
- "extract": {
- "title": {
- "css": "title",
- "value": "normalize-space(.)"
- },
- "body": {
- "css": "body #comic",
- "value": "./node()"
- }
- }
- },
- "schedule": "every_1d",
- "keep_events_for": 3600,
- "propagate_immediately": true
- },
- {
- "type": "Agents::PhantomJsCloudAgent",
- "name": "PhantomJS Cloud - Process - Options",
- "disabled": false,
- "guid": "6580abaadb5b70abace1f77e299c38ea",
- "options": {
- "mode": "clean",
- "api_key": "{% credential phantomjs_cloud %}",
- "url": "{{url}}",
- "render_type": "html",
- "output_as_json_radio": "false",
- "output_as_json": "false",
- "ignore_images_radio": "false",
- "ignore_images": "false",
- "user_agent": "Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.1.0.346 Mobile Safari/534.11+",
- "wait_interval": "1000"
- },
- "schedule": "every_12h",
- "keep_events_for": 3600,
- "propagate_immediately": false
- },
- {
- "type": "Agents::RssAgent",
- "name": "PhantomJS Cloud - In - RSS ",
- "disabled": false,
- "guid": "ddbd7c6b7a53f4e4a342574a9a3f8b8c",
- "options": {
- "expected_update_period_in_days": "5",
- "clean": "true",
- "url": "http://xkcd.com/rss.xml"
- },
- "schedule": "every_1d",
- "keep_events_for": 0
- }
- ],
- "links": [
- {
- "source": 1,
- "receiver": 0
- },
- {
- "source": 2,
- "receiver": 1
- },
- {
- "source": 3,
- "receiver": 2
- }
- ],
- "control_links": [
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement