-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.js
122 lines (115 loc) · 2.73 KB
/
const.js
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
module.exports.category_list = [
"ART_AND_DESIGN",
"AUTO_AND_VEHICLES",
"BEAUTY",
"BOOKS_AND_REFERENCE",
"BUSINESS",
"COMICS",
"COMMUNICATION",
"DATING",
"EDUCATION",
"ENTERTAINMENT",
"EVENTS",
"FINANCE",
"FOOD_AND_DRINK",
"HEALTH_AND_FITNESS",
"HOUSE_AND_HOME",
"LIBRARIES_AND_DEMO",
"LIFESTYLE",
"MAPS_AND_NAVIGATION",
"MEDICAL",
"MUSIC_AND_AUDIO",
"NEWS_AND_MAGAZINES",
"PARENTING",
"PERSONALIZATION",
"PHOTOGRAPHY",
"PRODUCTIVITY",
"SHOPPING",
"SOCIAL",
"SPORTS",
"TOOLS",
"TRAVEL_AND_LOCAL",
"VIDEO_PLAYERS",
"WEATHER"
]
module.exports.country_list = [
"US",
"IN",
"HK",
]
var rank_template = {
"app_id": "",
"app_name": "",
"app_page_url": "",
"source": "stratified/snowball",
"source_app": "stratified / [list of apps]",
"rank_at_souce": 0,
"rank_method": "Top Free",
"category": "",
"request_date": "2022-11-12"
}
var retry_template = {
"cat_num": 0,
"app_num": 0,
"app_id": "",
"request_date": "2022-11-12",
"count": 0,
"info": "",
"last_date": "2013-11-10T18:31:42.174Z",
"first_date": "2013-11-10T18:31:42.174Z",
"app_page_url": "",
}
var review_template = {
"app_id": "",
"app_name": "",
"country": "US",
"language": "us",
"post_date": "2013-11-10T18:31:42.174Z",
"review_id": "",
"user_name": "",
"user_image": "",
"score": 0,
"review_title": "",
"review_text": "A JSON object",
"is_replied": 0,
"reply_date": "2013-11-10T18:31:42.174Z",
"reply_text": "A JSON object",
"app_version": "",
"thumbsup": 0,
"url": "",
"criterias": "[]",
}
var review_stat_template = {
"app_id": "",
"app_name": "",
"category": "",
"category_rank": 1.0,
"review_amounts": 0,
"last_review_date": "2013-11-10T18:31:42.174Z",
"first_review_date": "2013-11-10T18:31:42.174Z",
"scrape_date": "2013-11-10",
}
var info_template = {
"app_id": "",
"app_name": "",
"country": "US",
"language": "us",
"app_description": "A JSON object",
"release_date": "May 30, 2013",
"is_free": 1,
"price": 0,
"currency": "USD",
"app_score": 0,
"download": "",
"total_ratings": 0,
"total_reviews": 0,
"rating_hist": " {\"1\":0, \"2\":0, \"3\":0, \"4\":0, \"5\":0}",
"app_category": "",
"app_category_id": "",
"scrape_date": "2013-11-10",
}
module.exports.dict_keys = Object.keys(rank_template);
module.exports.retry_keys = Object.keys(retry_template);
module.exports.review_keys = Object.keys(review_template);
module.exports.review_stat_keys = Object.keys(review_stat_template);
module.exports.info_keys = Object.keys(info_template);