update date
This commit is contained in:
parent
59033df19b
commit
046741181b
19
README.md
Normal file
19
README.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# api-xsmb-today
|
||||||
|
|
||||||
|
> take infor from api by https://api-xsmb-today.herokuapp.com/v1
|
||||||
|
>
|
||||||
|
> web-scraped from https://xosoketqua.com/xsmb-xo-so-mien-bac.html
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
| Keys | Type |
|
||||||
|
| ---- | ------ |
|
||||||
|
| time | String |
|
||||||
|
| G.ĐB | String |
|
||||||
|
| G.1 | String |
|
||||||
|
| G.2 | String |
|
||||||
|
| G.3 | String |
|
||||||
|
| G.4 | String |
|
||||||
|
| G.5 | String |
|
||||||
|
| G.6 | String |
|
||||||
|
| G.7 | String |
|
@ -110,9 +110,12 @@ class MainController {
|
|||||||
nowDay.getFullYear();
|
nowDay.getFullYear();
|
||||||
// console.log(nowDay.getHours() + ':' + nowDay.getMinutes());
|
// console.log(nowDay.getHours() + ':' + nowDay.getMinutes());
|
||||||
// console.log(objTimesNames);
|
// console.log(objTimesNames);
|
||||||
|
|
||||||
|
const date = $('.class-title-list-link', html).first().find('a:last-child').text().split(' ')[1];
|
||||||
|
|
||||||
res.status(200).json({
|
res.status(200).json({
|
||||||
countNumbers: numbers.length,
|
countNumbers: numbers.length,
|
||||||
time: calendar,
|
time: date,
|
||||||
objTimesNames,
|
objTimesNames,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user