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}`));