Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kremilly/urlshot

Screenshot of URL using a web API
https://github.com/kremilly/urlshot

edgedriver python screenshot selenium web-api

Last synced: about 1 month ago
JSON representation

Screenshot of URL using a web API

Awesome Lists containing this project

README

        

# URLShot

Take a screenshot of URL using API

> [!warning]
> *Unfortunately, [**Vercel**](https://vercel.com) does not support this type of application.*

## To locally execute the project

Clone this repository:

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

Install the dependencies:

```shell
pip install -r requirements.txt
```

To run the server, use:

```shell
python index.py
```

> [!note]
> ***IMPORTANT***: Download and Install the EdgeDriver, you can download this [link](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/?ch=1&form=MA13LH#downloads)

### Example of request

```shell
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