block by ThomasG77 f123512d54fa23de8797a4c47c847f07

f123512d54fa23de8797

Make screen from Geoportail site, hiding help

Node version

Prerequisites

Get Node.js with associated npm

Install

npm i

Run

# 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

Python version

Prerequisites

Get Python 3.6+ and associated pip

Install

python -m pip install pyppeteer

Run

# 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

package.json

screenshot-geoportail.js

screenshot-geoportail.py