-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINPUT_SCHEMA.json
92 lines (92 loc) · 3.29 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
88
89
90
91
92
{
"title": "weather-scraper",
"description": "",
"type": "object",
"schemaVersion": 1,
"properties": {
"startUrls": {
"title": "Start urls",
"description": "",
"prefill": [
{
"url": "https://weather.com/weather/today/l/f892433d7660da170347398eb8e3d722d8d362fe7dd15af16ce88324e1b96e70"
}
],
"example": [
{
"url": "https://weather.com/weather/today/l/f892433d7660da170347398eb8e3d722d8d362fe7dd15af16ce88324e1b96e70"
}
],
"type": "array",
"uniqueItems": true,
"editor": "requestListSources"
},
"timeFrame": {
"title": "Time Frame",
"type": "string",
"description": "Select time frame",
"editor": "select",
"default": "today",
"prefill": "today",
"enum": ["today", "hour_by_hour", "ten_day", "weekend", "month"],
"enumTitles": ["Today", "Hourly", "10 Day", "Weekend", "Month"]
},
"units": {
"title": "Units",
"type": "string",
"description": "Select units",
"editor": "select",
"prefill": "imperial",
"default": "imperial",
"enum": ["imperial", "metric"],
"enumTitles": ["Imperial (F)", "Metric (C)"]
},
"maxItems": {
"title": "Max items",
"type": "integer",
"minimum": 0,
"description": "Limit the number of locations to be scraped. Zero value means no limit.",
"prefill": 10,
"default": 10
},
"locations": {
"title": "Search Locations by name",
"type": "array",
"description": "Input must be in: City, State, Country or City, Country",
"prefill": [],
"default": [],
"editor": "stringList",
"sectionCaption": "Advanced options"
},
"locationIds": {
"title": "Search Locations by location id",
"type": "array",
"description": "ID is in the last part of URL on weather.com",
"prefill": [],
"default": [],
"editor": "stringList"
},
"proxyConfiguration": {
"title": "Proxy configuration",
"type": "object",
"description": "Select proxies to be used by your actor.",
"example": {
"useApifyProxy": true
},
"prefill": {
"useApifyProxy": true
},
"editor": "proxy"
},
"extendOutputFunction": {
"title": "Extend output function",
"type": "string",
"editor": "javascript",
"description": "A function which result will get merged with the default result. It must return an object.",
"example": "($) => {\n const result = {};\n // Uncomment to modify the title of each item of the output\n // result.title = 'Test Title';\n\n return result;\n}",
"default": "() => ({})",
"prefill": "() => ({})"
}
},
"required": ["proxyConfiguration", "timeFrame", "units", "maxItems"]
}