https://github.com/xela/html_png
An API that renders HTML/CSS content to PNG using Chromium
https://github.com/xela/html_png
api chrome chromedriver css fast html localhost python
Last synced: 7 months ago
JSON representation
An API that renders HTML/CSS content to PNG using Chromium
- Host: GitHub
- URL: https://github.com/xela/html_png
- Owner: xelA
- License: mit
- Archived: true
- Created: 2021-09-17T09:34:14.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-26T14:34:02.000Z (over 2 years ago)
- Last Synced: 2025-03-21T15:18:28.105Z (8 months ago)
- Topics: api, chrome, chromedriver, css, fast, html, localhost, python
- Language: Python
- Homepage:
- Size: 76.7 MB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# html_png
An API that renders HTML/CSS content to PNG using Chromium
# Disclaimer
I am **not** responsible if you happen to make your own instance of this API, have it public and get your IP leaked because someone really wanted to put a nice, little `
` which tracks your IP or any other methods.
Heavily recommend to only run this on **localhost** where your services and scripts are the only authorized users/programs to take advantage of the rendering API.
# Requirements
- Python 3.7 or above
- Chrome
# Usage
POST Request: `http://localhost:PORT`
JSON args:
- html (Required: The HTML that API should render)
- css (Optional: The CSS that API should render)
# LICENSE
Please provide credits if you're going to take usage of this :)