Git Product home page Git Product logo

webscreenshot's Introduction

WebScreenshot

ASP.NET Core + Selenium 实现 网页截图

repo size LICENSE QQ Group

Introduce

ASP.NET Core + Selenium 实现 网页截图

Quick Start

方式1: 使用 Railway 免费 一键部署

Deploy on Railway

方式2: 使用 Heroku 免费 一键部署

Deploy on Heroku

方式3: 使用 Docker

# 获取源代码: 方式1: ssh 
git clone [email protected]:yiyungent/WebScreenshot.git
# 获取源代码: 方式2: https 
git clone https://github.com/yiyungent/WebScreenshot.git

docker build -t yiyungent/webscreenshot -f src/WebScreenshot/Dockerfile .

docker run -d -p 5004:80 -e ASPNETCORE_URLS="http://*:80" --name webscreenshot yiyungent/webscreenshot

Demo

API 文档

环境变量

环境变量名称 必填 备注
WEBSCREENSHOT_CACHEMINUTES 截图 缓存时间 (分钟), 默认 60
WEBSCREENSHOT_CACHEMODE 缓存模式, 默认 memory, 可填 file

注意:

强烈建议 使用 Railway 部署的用户,设置 WEBSCREENSHOT_CACHEMODEfile , 降低内存占用,

大多数 出错啦! ,都是由于内存不足

注意:
Railway Deploy , 处于 ACTIVE 后,此时 Server Error,只需要等待一会完全启动完成即可。

注意:

正常运行较长时间后, 当 Railway 长时间 显示 Server Error 时,但 Railway 后台处于 active 时,说明 服务已经挂掉,

你可以通过 修改 环境变量 (无需真修改,只要点击 √ 保存一次就行) 的方式,重新触发 Deploy

相关项目

Donate

WebScreenshot is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing.

We accept donations through these channels:

Author

WebScreenshot © yiyun, Released under the MIT License.
Authored and maintained by yiyun with help from contributors (list).

GitHub @yiyungent Gitee @yiyungent

webscreenshot's People

Contributors

yiyungent avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.