forked from cermak-petr/actor-booking-scraper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINPUT_SCHEMA.json
122 lines (122 loc) · 6.25 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"title": "Booking Crawler input",
"type": "object",
"schemaVersion": 1,
"properties": {
"search": {
"title": "Booking search query",
"type": "string",
"description": "Query string to be searched on Booking.com",
"prefill": "Paris",
"editor": "textfield"
},
"sortBy": {
"title": "Order results by",
"type": "string",
"description": "Hotel attribute by which the results will be ordered",
"default": "bayesian_review_score",
"enum": [
"bayesian_review_score",
"popularity",
"price",
"review_score_and_price",
"class",
"class_asc",
"distance_from_landmark&dst_landmark=cc"
],
"enumTitles": [
"Rating",
"Popularity",
"Price",
"Rating and price",
"Stars",
"Stars ascending",
"Distance from city centre"
]
},
"minScore": {
"title": "Minimum rating",
"type": "string",
"description": "Minimum rating of a hotel",
"editor": "textfield"
},
"maxPages": {
"title": "Maximum pagination pages",
"type": "integer",
"description": "Number of pagination pages to be crawled",
"default": 20,
"maximum": 1000000
},
"checkIn": {
"title": "Check-in date (mm-dd-yyyy)",
"type": "string",
"description": "Check-in date",
"default": "",
"editor": "textfield"
},
"checkOut": {
"title": "Check-out date (mm-dd-yyyy)",
"type": "string",
"description": "Check-out date",
"default": "",
"editor": "textfield"
},
"rooms": {
"title": "Number of rooms",
"type": "integer",
"description": "Number of rooms for the search",
"default": 1,
"maximum": 50
},
"adults": {
"title": "Number of adults",
"type": "integer",
"description": "Number of adults for the search",
"default": 2,
"maximum": 50
},
"children": {
"title": "Number of children",
"type": "integer",
"description": "Number of children for the search",
"default": 0,
"maximum": 50
},
"currency": {
"title": "Preferred currency",
"type": "string",
"description": "Currency code to be set on the site",
"default": "EUR",
"enum": ["ARS","AUD","AZN","BHD","BRL","BGN","CAD","XOF","CLP","CNY","COP","CZK","DKK","EGP","EUR","FJD","GEL","HKD","HUF","INR","IDR","ILS","JPY","JOD","KZT","KRW","KWD","MYR","MXN","MDL","NAD","TWD","NZD","NOK","OMR","PLN","GBP","QAR","RON","RUB","SAR","SGD","ZAR","SEK","CHF","THB","TRY","AED","USD","UAH"],
"enumTitles": ["AR$ - Argentine peso", "AUD - Australian dollar", "AZN - Azerbaijan, New Manats", "BHD - Bahrain dinar", "R$ - Brazilian real", "BGN - Bulgarian lev", "CAD - Canadian dollar", "XOF - CFA Franc BCEAO", "CL$ - Chilean peso", "CNY - Chinese yuan", "COP - Colombian peso", "Kč - Czech koruna", "DKK - Danish krone", "EGP - Egyptian pound", "€ - Euro", "FJD - Fijian dollar", "GEL - Georgian lari", "HK$ - Hong Kong Dollar", "HUF - Hungarian forint", "Rs. - Indian rupee", "Rp - Indonesian rupiah", "₪ - Israeli new sheqel", "¥ - Japanese yen", "JOD - Jordanian dinar", "KZT - Kazakhstani tenge", "KRW - Korean won", "KWD - Kuwaiti dinar", "MYR - Malaysian ringgit", "MXN - Mexican peso", "MDL - Moldovan leu", "NAD - Namibian Dollar", "TWD - New Taiwan Dollar", "NZD - New Zealand dollar", "NOK - Norwegian krone", "OMR - Omani rial", "zł - Polish zloty", "£ - Pound sterling", "QAR - Qatar riyal", "lei - Romanian new leu", "RUB - Russian Ruble", "SAR - Saudi Arabian riyal", "S$ - Singapore dollar", "ZAR - South African rand", "SEK - Swedish krona", "CHF - Swiss franc", "THB - Thai baht", "TL - Turkish lira", "AED - U.A.E. dirham", "US$ - U.S. dollar", "UAH - Ukraine Hryvnia"]
},
"language": {
"title": "Language",
"type": "string",
"description": "Language code to be set on the site",
"default": "en-gb",
"enum": ["en-gb","en-us","de","nl","fr","es","es-ar","ca","it","pt-pt","pt-br","no","fi","sv","da","cs","hu","ro","ja","zh-cn","zh-tw","pl","el","ru","tr","bg","ar","ko","he","lv","uk","id","ms","th","et","hr","lt","sk","sr","sl","vi","tl","is"],
"enumTitles": ["English (UK)","English (US)","Deutsch","Nederlands","Français","Español","Español (AR)","Català","Italiano","Português (PT)","Português (BR)","Norsk","Suomi","Svenska","Dansk","Čeština","Magyar","Română","日本語","简体中文","繁體中文","Polski","Ελληνικά","Русский","Türkçe","Български","العربية","한국어","עברית","Latviski","Українська","Bahasa Indonesia","Bahasa Malaysia","ภาษาไทย","Eesti","Hrvatski","Lietuvių","Slovenčina","Srpski","Slovenščina","Tiếng Việt","Filipino","Íslenska"]
},
"proxyConfig": {
"title": "Proxy configuration",
"type": "object",
"description": "Optionally use Apify Proxy",
"default": { "useApifyProxy": true },
"editor": "proxy"
},
"simple": {
"title": "Extract hotel list pages only (no detail)",
"type": "boolean",
"description": "The crawler will get only the data available on the list page and not go to the hotel detail page.",
"default": true
},
"useFilters": {
"title": "Circumvent 1000 results limitation (uses criteria filters, slower)",
"type": "boolean",
"description": "The crawler will enqueue all the different criteria filtered pages, this will overcome the 1000 results limit, but the scrape will take significantly longer.",
"default": false
}
},
"required": ["search"]
}