Get Node.js with associated npm
npm i
# Default to file example.png
node screenshot-geoportail.js your_geoportail_url
or
node screenshot-geoportail.js your_geoportail_url filename.png
Real example in action
node screenshot-geoportail.js 'https://www.geoportail.gouv.fr/carte?c=-1.55364,47.218383000000046&z=11&l0=ORTHOIMAGERY.ORTHOPHOTOS::GEOPORTAIL:OGC:WMTS(1)&permalink=yes' out.png
Get Python 3.6+ and associated pip
python -m pip install pyppeteer
# Default to file example.png
python screenshot-geoportail.py your_geoportail_url
or
python screenshot-geoportail.py your_geoportail_url filename.png
Real example in action
python screenshot-geoportail.py 'https://www.geoportail.gouv.fr/carte?c=-1.55364,47.218383000000046&z=11&l0=ORTHOIMAGERY.ORTHOPHOTOS::GEOPORTAIL:OGC:WMTS(1)&permalink=yes' out.png