Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgglez/fc-webpage-screenshot
Aliyun FC function that takes a screenshot of a webpage, using puppeteer.
https://github.com/rgglez/fc-webpage-screenshot
aliyun functioncompute javascript puppeteer screenshot webservice
Last synced: 2 days ago
JSON representation
Aliyun FC function that takes a screenshot of a webpage, using puppeteer.
- Host: GitHub
- URL: https://github.com/rgglez/fc-webpage-screenshot
- Owner: rgglez
- License: bsd-3-clause
- Created: 2023-02-07T07:21:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T20:17:17.000Z (almost 2 years ago)
- Last Synced: 2024-12-21T00:02:22.606Z (about 1 month ago)
- Topics: aliyun, functioncompute, javascript, puppeteer, screenshot, webservice
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fc-webpage-screenshot
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
![GitHub all releases](https://img.shields.io/github/downloads/rgglez/fc-webpage-screenshot/total)
![GitHub issues](https://img.shields.io/github/issues/rgglez/fc-webpage-screenshot)
![GitHub commit activity](https://img.shields.io/github/commit-activity/y/rgglez/fc-webpage-screenshot)This is a microservice written in Javascript for Aliyun Function Compute NodeJS FaaS that makes a screenshot of a web page, using [puppeteer](https://www.npmjs.com/package/puppeteer) and [chromium](https://www.chromium.org/Home/).
The URL of the page to be screenshoted is passed via query parameter in the URL of the function.
```
/webpage-screenshot?url=https://www.example.com
```The JPEG image of the captured screen will be returned.
## Notes
* A *Dockerfile* is provided as a guide. You might need to customize it.
* The FC is working in Web Server mode, so [express](https://www.npmjs.com/package/express) is used.## License
Copyright (c) 2023 Rodolfo González González.
Read the LICENSE file.