Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kremilly/urlshot
- Owner: Kremilly
- License: mit
- Created: 2024-04-15T15:46:29.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-24T23:11:40.000Z (10 months ago)
- Last Synced: 2025-01-04T20:44:57.415Z (about 1 month ago)
- Topics: edgedriver, python, screenshot, selenium, web-api
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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