lscontests 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -56,36 +56,43 @@ Options:
56
56
  It performs as follows:
57
57
 
58
58
  <!-- block_cli begin -->
59
- (*The following content was automatically generated using [semantic-release](https://github.com/semantic-release/semantic-release) on Sun, 16 Oct 2022 05:22:37 GMT*)
59
+ (*The following content was automatically generated using [semantic-release](https://github.com/semantic-release/semantic-release) on Sat, 29 Oct 2022 17:43:19 GMT*)
60
60
 
61
61
  <details>
62
62
  <summary> <code>> lsct -L en</code> </summary>
63
63
 
64
64
  ```text
65
- There are no running contests on AtCoder,Codeforces,LeetCode,Luogu,NowCoder
66
-
67
- There are 3 contests on AtCoder,Codeforces in the next 3 days
65
+ There are 2 contests is running on Luogu
66
+
67
+ OJ: Luogu
68
+ Contest name: CSP-J 2022 自测
69
+ Rule: IOI
70
+ Start time: 10/29/2022, 04:30:00
71
+ End time: 11/5/2022, 14:00:00
72
+ https://www.luogu.com.cn/contest/90215
73
+
74
+ OJ: Luogu
75
+ Contest name: CSP-S 2022 自测
76
+ Rule: IOI
77
+ Start time: 10/29/2022, 10:45:00
78
+ End time: 11/5/2022, 14:00:00
79
+ https://www.luogu.com.cn/contest/90216
80
+
81
+ There are 2 contests on LeetCode,AtCoder in the next 3 days
82
+
83
+ OJ: LeetCode
84
+ Contest name: Weekly Contest 317
85
+ Rule: AtCoder
86
+ Start time: 10/30/2022, 02:30:00
87
+ End time: 10/30/2022, 04:00:00
88
+ https://leetcode.com/contest/weekly-contest-317
68
89
 
69
90
  OJ: AtCoder
70
- Contest name: AtCoder Regular Contest 151
91
+ Contest name: TOYOTA MOTOR CORPORATION Programming Contest 2022(AtCoder Heuristic Contest 015)
71
92
  Rule: AtCoder
72
- Start time: 10/16/2022, 12:00:00
73
- End time: 10/16/2022, 14:00:00
74
- https://atcoder.jp/contests/arc151
75
-
76
- OJ: Codeforces
77
- Contest name: Codeforces Round #828 (Div. 3)
78
- Rule: ICPC
79
- Start time: 10/16/2022, 14:35:00
80
- End time: 10/16/2022, 16:50:00
81
- https://codeforces.com/contests/1744
82
-
83
- OJ: Codeforces
84
- Contest name: Educational Codeforces Round 137 (Rated for Div. 2)
85
- Rule: ICPC
86
- Start time: 10/17/2022, 14:35:00
87
- End time: 10/17/2022, 16:35:00
88
- https://codeforces.com/contests/1743
93
+ Start time: 10/30/2022, 06:00:00
94
+ End time: 10/30/2022, 10:00:00
95
+ https://atcoder.jp/contests/ahc015
89
96
  ```
90
97
 
91
98
  </details>
@@ -96,42 +103,28 @@ https://codeforces.com/contests/1743
96
103
  ```text
97
104
  There are no running contests on AtCoder,Codeforces
98
105
 
99
- There are 5 contests on AtCoder,Codeforces in the next 7 days
106
+ There are 3 contests on AtCoder,Codeforces in the next 7 days
100
107
 
101
108
  OJ: AtCoder
102
- Contest name: AtCoder Regular Contest 151
109
+ Contest name: TOYOTA MOTOR CORPORATION Programming Contest 2022(AtCoder Heuristic Contest 015)
103
110
  Rule: AtCoder
104
- Start time: 10/16/2022, 12:00:00
105
- End time: 10/16/2022, 14:00:00
106
- https://atcoder.jp/contests/arc151
107
-
108
- OJ: Codeforces
109
- Contest name: Codeforces Round #828 (Div. 3)
110
- Rule: ICPC
111
- Start time: 10/16/2022, 14:35:00
112
- End time: 10/16/2022, 16:50:00
113
- https://codeforces.com/contests/1744
111
+ Start time: 10/30/2022, 06:00:00
112
+ End time: 10/30/2022, 10:00:00
113
+ https://atcoder.jp/contests/ahc015
114
114
 
115
115
  OJ: Codeforces
116
- Contest name: Educational Codeforces Round 137 (Rated for Div. 2)
117
- Rule: ICPC
118
- Start time: 10/17/2022, 14:35:00
119
- End time: 10/17/2022, 16:35:00
120
- https://codeforces.com/contests/1743
121
-
122
- OJ: Codeforces
123
- Contest name: Educational Codeforces Round 138 (Rated for Div. 2)
124
- Rule: ICPC
125
- Start time: 10/20/2022, 14:35:00
126
- End time: 10/20/2022, 16:35:00
127
- https://codeforces.com/contests/1749
116
+ Contest name: Codeforces Round (Div. 2)
117
+ Rule: Codeforces
118
+ Start time: 11/4/2022, 14:35:00
119
+ End time: 11/4/2022, 16:35:00
120
+ https://codeforces.com/contests/1747
128
121
 
129
122
  OJ: AtCoder
130
- Contest name: Ⓐ キーエンスプログラミングコンテスト 2022(AtCoder Beginner Contest 274)
123
+ Contest name: Ⓐ AtCoder Beginner Contest 276
131
124
  Rule: AtCoder
132
- Start time: 10/22/2022, 12:00:00
133
- End time: 10/22/2022, 13:40:00
134
- https://atcoder.jp/contests/abc274
125
+ Start time: 11/5/2022, 12:00:00
126
+ End time: 11/5/2022, 13:40:00
127
+ https://atcoder.jp/contests/abc276
135
128
  ```
136
129
 
137
130
  </details>
@@ -145,91 +138,81 @@ https://atcoder.jp/contests/abc274
145
138
  "upcoming": [
146
139
  {
147
140
  "ojName": "AtCoder",
148
- "name": " AtCoder Regular Contest 151",
141
+ "name": " TOYOTA MOTOR CORPORATION Programming Contest 2022(AtCoder Heuristic Contest 015)",
149
142
  "rule": "AtCoder",
150
- "startTime": "2022-10-16T12:00:00.000Z",
151
- "endTime": "2022-10-16T14:00:00.000Z",
152
- "url": "https://atcoder.jp/contests/arc151"
143
+ "startTime": "2022-10-30T06:00:00.000Z",
144
+ "endTime": "2022-10-30T10:00:00.000Z",
145
+ "url": "https://atcoder.jp/contests/ahc015"
153
146
  },
154
147
  {
155
148
  "ojName": "AtCoder",
156
- "name": "Ⓐ キーエンスプログラミングコンテスト2022(AtCoder Beginner Contest 274)",
149
+ "name": "Ⓐ AtCoder Beginner Contest 276",
157
150
  "rule": "AtCoder",
158
- "startTime": "2022-10-22T12:00:00.000Z",
159
- "endTime": "2022-10-22T13:40:00.000Z",
160
- "url": "https://atcoder.jp/contests/abc274"
151
+ "startTime": "2022-11-05T12:00:00.000Z",
152
+ "endTime": "2022-11-05T13:40:00.000Z",
153
+ "url": "https://atcoder.jp/contests/abc276"
161
154
  },
162
155
  {
163
156
  "ojName": "AtCoder",
164
- "name": " AtCoder Beginner Contest 275",
157
+ "name": " HACK TO THE FUTURE 2023 qual(AtCoder Heuristic Contest 016)",
165
158
  "rule": "AtCoder",
166
- "startTime": "2022-10-29T12:00:00.000Z",
167
- "endTime": "2022-10-29T13:40:00.000Z",
168
- "url": "https://atcoder.jp/contests/abc275"
159
+ "startTime": "2022-11-11T10:00:00.000Z",
160
+ "endTime": "2022-11-20T10:00:00.000Z",
161
+ "url": "https://atcoder.jp/contests/ahc016"
169
162
  },
170
163
  {
171
164
  "ojName": "AtCoder",
172
- "name": " TOYOTA MOTOR CORPORATION Programming Contest 2022AtCoder Heuristic Contest 015)",
165
+ "name": " Daiwa Securities Co. Ltd. Programming Contest 2022 Autumn (AtCoder Beginner Contest 277)",
173
166
  "rule": "AtCoder",
174
- "startTime": "2022-10-30T06:00:00.000Z",
175
- "endTime": "2022-10-30T10:00:00.000Z",
176
- "url": "https://atcoder.jp/contests/ahc015"
167
+ "startTime": "2022-11-12T12:00:00.000Z",
168
+ "endTime": "2022-11-12T13:40:00.000Z",
169
+ "url": "https://atcoder.jp/contests/abc277"
177
170
  },
178
171
  {
179
- "ojName": "Codeforces",
180
- "name": "Codeforces Round #828 (Div. 3)",
181
- "rule": "ICPC",
182
- "startTime": "2022-10-16T14:35:00.000Z",
183
- "endTime": "2022-10-16T16:50:00.000Z",
184
- "url": "https://codeforces.com/contests/1744"
185
- },
186
- {
187
- "ojName": "Codeforces",
188
- "name": "Educational Codeforces Round 137 (Rated for Div. 2)",
189
- "rule": "ICPC",
190
- "startTime": "2022-10-17T14:35:00.000Z",
191
- "endTime": "2022-10-17T16:35:00.000Z",
192
- "url": "https://codeforces.com/contests/1743"
193
- },
194
- {
195
- "ojName": "Codeforces",
196
- "name": "Educational Codeforces Round 138 (Rated for Div. 2)",
197
- "rule": "ICPC",
198
- "startTime": "2022-10-20T14:35:00.000Z",
199
- "endTime": "2022-10-20T16:35:00.000Z",
200
- "url": "https://codeforces.com/contests/1749"
172
+ "ojName": "AtCoder",
173
+ "name": " TOYOTA SYSTEMS Programming Contest 2022(AtCoder Beginner Contest 279)",
174
+ "rule": "AtCoder",
175
+ "startTime": "2022-11-26T12:00:00.000Z",
176
+ "endTime": "2022-11-26T13:40:00.000Z",
177
+ "url": "https://atcoder.jp/contests/abc279"
201
178
  },
202
179
  {
203
180
  "ojName": "Codeforces",
204
181
  "name": "Codeforces Round (Div. 2)",
205
182
  "rule": "Codeforces",
206
- "startTime": "2022-10-23T10:05:00.000Z",
207
- "endTime": "2022-10-23T12:05:00.000Z",
208
- "url": "https://codeforces.com/contests/1732"
183
+ "startTime": "2022-11-04T14:35:00.000Z",
184
+ "endTime": "2022-11-04T16:35:00.000Z",
185
+ "url": "https://codeforces.com/contests/1747"
209
186
  },
210
187
  {
211
188
  "ojName": "Codeforces",
212
- "name": "Codeforces Round (Div. 1 + Div. 2)",
189
+ "name": "CodeTON Round 3 (Div. 1 + Div. 2, Rated, Prizes!)",
213
190
  "rule": "Codeforces",
214
- "startTime": "2022-10-29T09:05:00.000Z",
215
- "endTime": "2022-10-29T11:05:00.000Z",
216
- "url": "https://codeforces.com/contests/1740"
191
+ "startTime": "2022-11-06T14:35:00.000Z",
192
+ "endTime": "2022-11-06T16:35:00.000Z",
193
+ "url": "https://codeforces.com/contests/1750"
217
194
  },
218
195
  {
219
196
  "ojName": "Codeforces",
220
197
  "name": "Codeforces Round (Div. 2)",
221
198
  "rule": "Codeforces",
222
- "startTime": "2022-11-04T14:35:00.000Z",
223
- "endTime": "2022-11-04T16:35:00.000Z",
224
- "url": "https://codeforces.com/contests/1747"
199
+ "startTime": "2022-11-12T14:35:00.000Z",
200
+ "endTime": "2022-11-12T16:35:00.000Z",
201
+ "url": "https://codeforces.com/contests/1748"
225
202
  },
226
203
  {
227
204
  "ojName": "Codeforces",
228
- "name": "Codeforces Round (Div. 1 + Div. 2)",
229
- "rule": "Codeforces",
230
- "startTime": "2022-11-06T14:35:00.000Z",
231
- "endTime": "2022-11-06T16:35:00.000Z",
232
- "url": "https://codeforces.com/contests/1750"
205
+ "name": "45th ICPC World Finals Challenge powered by Huawei - Problem 1",
206
+ "startTime": "2022-11-17T00:00:00.000Z",
207
+ "endTime": "2022-11-30T23:59:00.000Z",
208
+ "url": "https://codeforces.com/contests/1751"
209
+ },
210
+ {
211
+ "ojName": "Codeforces",
212
+ "name": "45th ICPC World Finals Challenge powered by Huawei - Problem 2",
213
+ "startTime": "2022-11-17T00:00:00.000Z",
214
+ "endTime": "2022-11-30T23:59:00.000Z",
215
+ "url": "https://codeforces.com/contests/1752"
233
216
  },
234
217
  {
235
218
  "ojName": "Codeforces",
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.nc = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const cheerio_1 = require("cheerio");
18
- const lodash_1 = require("lodash");
18
+ const html_entities_1 = require("html-entities");
19
19
  var topCategoryFilter;
20
20
  (function (topCategoryFilter) {
21
21
  topCategoryFilter[topCategoryFilter["NOWCODERSERIES"] = 13] = "NOWCODERSERIES";
@@ -49,7 +49,7 @@ exports.nc = {
49
49
  return res.filter(res => res.signUpEndCountDownTime > 0).map((res) => {
50
50
  return {
51
51
  ojName: exports.nc.name,
52
- name: (0, lodash_1.unescape)(res.contestName),
52
+ name: (0, html_entities_1.decode)(res.contestName),
53
53
  rule: ruleRecord[res.type],
54
54
  startTime: new Date(res.contestStartTime),
55
55
  endTime: new Date(res.contestEndTime),
@@ -1 +1 @@
1
- {"version":3,"file":"nowcoder.js","sourceRoot":"","sources":["../../../src/lib/oj/nowcoder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,qCAA+B;AAG/B,mCAAkC;AA8ClC,IAAK,iBAIJ;AAJD,WAAK,iBAAiB;IAElB,8EAAmB,CAAA;IACnB,4EAAa,CAAA;AACjB,CAAC,EAJI,iBAAiB,KAAjB,iBAAiB,QAIrB;AAED,MAAM,GAAG,G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,iBAAiB,CAAC,cAAc,CAAC;gBACxD,GAAG,MAAM,aAAa,CAAC,iBAAiB,CAAC,aAAa,CAAC;aAC1D,CAAC;YACF,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAW,EAAE;gBAE1E,OAAO;oBACH,MAAM,EAAE,UAAE,CAAC,IAAI;oBACf,IAAI,EAAE,IAAA,sBAAM,EAAC,GAAG,CAAC,WAAW,CAAC;oBAC7B,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC;oBAC1B,SAAS,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC;oBACzC,OAAO,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC;oBACrC,GAAG,EAAE,uCAAuC,GAAG,CAAC,SAAS,EAAE;iBAC9D,CAAC;YACN,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lscontests",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "A tool to get information about the contests on each OJ",
5
5
  "keywords": [
6
6
  "cli",
@@ -41,6 +41,7 @@
41
41
  "cheerio": "^1.0.0-rc.11",
42
42
  "commander": "^9.3.0",
43
43
  "express": "^4.18.1",
44
+ "html-entities": "^2.3.3",
44
45
  "ics": "^2.35.0",
45
46
  "lodash": "^4.17.21",
46
47
  "pangu": "^4.0.7",