Mirror the full html of the page.
- Download
scriptsdirectory on aim machine. - Run
sudo sh scripts/install.sh -u0 -g0 -d"/path/to/dir"(u - user id, g - group id, d - path to installation dir) - Change docker config in
docker-compose.yml - Change
env.prodandenv.devaccording to exists.envor.env.example
Move to directory with app
cd /path/to/dir
Docker compose
docker compose up -d
Use route /reflect by app port with any type request
http://127.0.0.1:8009/reflect?url=https://google.com&waitTime=3&preWait=0&chromeArgs[0]=--lang=ru-RU&chromeArgs[1]=--accept-lang=ru-RU
Params:
url- Required. Url of page which html we want to obtain.waitTime- Max wait time for page loading.preWait- Flag marking necessity to wait before page load check.chromeArgs- Array of Chrome args.