-
Notifications
You must be signed in to change notification settings - Fork 19
/
INPUT_SCHEMA.json
87 lines (86 loc) · 3.37 KB
/
INPUT_SCHEMA.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"title": "Content checker input",
"type": "object",
"schemaVersion": 1,
"required": ["url", "contentSelector", "sendNotificationTo"],
"properties": {
"url": {
"title": "URL to check",
"type": "string",
"description": "URL of a web page to be monitored",
"editor": "textfield",
"prefill": "https://www.apify.com/change-log"
},
"contentSelector": {
"title": "Monitored area selector",
"type": "string",
"description": "CSS selector of an area you want to monitor",
"editor": "textfield",
"prefill": "[class^=change-log__MonthBox-]:nth-of-type(1) ul"
},
"screenshotSelector": {
"title": "Screenshot selector",
"type": "string",
"description": "CSS selector of a screenshot you want to get",
"editor": "textfield",
"prefill": "[class^=change-log__MonthBox-]:nth-of-type(1) ul"
},
"sendNotificationTo": {
"title": "Email address",
"type": "string",
"description": "Email address where you want to get the notification",
"editor": "textfield"
},
"sendNotificationText": {
"title": "Notification Text",
"type": "string",
"description": "Optional text to include in the email notification.",
"editor": "textfield",
"prefill": "Apify found a new change!"
},
"informOnError": {
"title": "Notification in case of error",
"type": "string",
"description": "In case of the problem with selectors on the page, you will get notification mail \n with the screenshot of the page attached.",
"editor": "select",
"default": "false",
"enum": ["true", "false"],
"enumTitles": ["Send", "Do not send"]
},
"proxy": {
"title": "Proxy Configuration",
"type": "object",
"prefill": {
"useApifyProxy": false
},
"description": "Select a proxy if the target website is blocking your access.",
"editor": "proxy",
"sectionCaption": "Proxy and browser configuration",
"sectionDescription": "Here you can specify further the behaviour of the scraper. However we worked hard to set the best options for you already."
},
"navigationTimeout": {
"title": "Navigation Timeout",
"description": "How long it should wait, in milliseconds, until the page times out",
"type": "integer",
"prefill": 30000,
"default": 30000,
"unit": "ms"
},
"retryStrategy": {
"title": "How to retry",
"type": "string",
"description": "Sometimes the page doesn't load properly or the actor gets blocked so retrying those helps. On the other hand retrying wrong selector doesn't help. The recognition of blocked pages is not perfect (about 80%).",
"editor": "select",
"default": "on-block",
"enum": ["on-block", "on-all-errors", "never-retry"],
"enumTitles": ["When being blocked", "For all errors", "Never"]
},
"maxRetries": {
"title": "Maximum number of retries",
"description": "How many times the actor should retry in case of error.",
"type": "integer",
"default": 5,
"unit": "retries"
}
}
}