Skip to content

kremilly/URLShot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URLShot

Take a screenshot of URL using API

Warning

Unfortunately, Vercel does not support this type of application.

To locally execute the project

Clone this repository:

git clone https://github.com/kremilly/URLShot

Install the dependencies:

pip install -r requirements.txt

To run the server, use:

python index.py

Note

IMPORTANT: Download and Install the EdgeDriver, you can download this link

Example of request

http://127.0.0.1:5000/api?url=https://example.com&width=1920&height=1080

Queries Parameters

  • url URL to take a screenshot
  • width Width of image
  • height Height of image

Dependencies

  • Python
  • Flask
  • selenium
  • EdgeDriver
  • requests