Config url & update README
This commit is contained in:
parent
278023bcd2
commit
02d96ddf88
2
.env
Normal file
2
.env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
URL=https://az24.vn/xsmb-sxmb-xo-so-mien-bac.html
|
||||||
|
#https://xosoketqua.com/xsmb-xo-so-mien-bac.html[DA TUNG SU DUNG]
|
@ -1,8 +1,6 @@
|
|||||||
# api-xsmb-today
|
# api-xsmb-today
|
||||||
|
|
||||||
> take info from api by https://api-xsmb-today.cyclic.app/api/v1
|
> take info from api by https://api-xsmb.cyclic.app/api/v1
|
||||||
>
|
|
||||||
> web-scraped from https://az24.vn/xsmb-sxmb-xo-so-mien-bac.html
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
const cheerio = require('cheerio');
|
const cheerio = require('cheerio');
|
||||||
|
require('dotenv').config();
|
||||||
|
|
||||||
// const url = 'https://xosoketqua.com/xsmb-xo-so-mien-bac.html';
|
|
||||||
const url = 'https://az24.vn/xsmb-sxmb-xo-so-mien-bac.html';
|
const url = process.env.URL;
|
||||||
|
|
||||||
class MainController {
|
class MainController {
|
||||||
getAll = async (req, res) => {
|
getAll = async (req, res) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user