Giter Club home page Giter Club logo

screenshootservice's Introduction

screenShootServer

web截屏服务: 通过puppeteer(Chrome无头浏览器)做的一个web截屏服务,集成html转图片功能。 客户端可直接通过url和相关参数来获取一张图片

团购信息图片请求规则:

http://127.0.0.1:9000/groupbuying/img

通过url带上以下参数

{
    title: '店名',
    poiTitle: '地点店名',
    poiWapUrl: '带key的美团店的url',
    originPrice: '原价',
    price: '团购价',
    name: '产品名',
    poiImg: '店图片',
    pic: '产品图片',
}

QuickStart

see egg docs for more detail.

Development

$ npm i
$ npm run dev
$ open http://localhost:9000/

Deploy

$ npm start
$ npm stop

npm scripts

  • Use npm run lint to check code style.
  • Use npm test to run unit test.
  • Use npm run autod to auto detect dependencies upgrade, see autod for more detail.

screenshootservice's People

Contributors

jinggoing avatar

Watchers

James Cloos avatar  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.