APIs list:
method | path | params | result |
---|---|---|---|
GET | /getImage |
?url=https://github.com/LuigiImVector/ |
screenshot of that website (1920x1080) |
NOTE ❗
Write the URL withhttps://
orhttp://
- Clone the repository
- Install dependencies:
npm install
- Run:
npm run test
- Go to:
localhost:8000
...
Install ngrok and write:
ngrok http 8000
Save the url, for example:
Forwarding https://8c9b-151-54-23-194.eu.ngrok.io -> http://localhost:8000
Install cURL and write:
curl -o screenshot.png https://8c9b-151-54-23-194.eu.ngrok.io/getImage?url=https://socus.netlify.app/
Open an issue, if you want to contribute open a PR.
- Use this website to get custom screenshot: https://github.com/LuigiImVector/scrnsht/ (coming soon)