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: 4 months 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T20:17:17.000Z (about 2 years ago)
- Last Synced: 2025-01-28T01:44:30.532Z (6 months 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
[](https://opensource.org/licenses/BSD-3-Clause)


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.