File size: 498 Bytes
87d65df e7ac85d dc17900 87d65df dc17900 e7ac85d 87d65df 823e284 e7ac85d 87d65df dc17900 87d65df |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
const express = require('express');
const { exec } = require('child_process');
const app = express();
const PORT = 7860;
app.all('/', (_, res) => {
exec(
`curl -s -A "Mozilla/5.0 (Linux; Android 10; Mobile)" https://growtopiagame.com/detail`,
(err, stdout) => {
const match = stdout.match(/"online_user"\s*:\s*"(\d+)"/);
const online = match?.[1];
console.log(stdout)
res.send(stdout)
}
);
});
app.listen(PORT, () => console.log(`Listening on ${PORT}`)); |