update date

This commit is contained in:
d4rtj 2022-09-08 19:57:59 +07:00
parent 59033df19b
commit 046741181b
2 changed files with 23 additions and 1 deletions

19
README.md Normal file
View 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 |

View File

@ -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,
}); });
}); });