Giter VIP home page Giter VIP logo

zhilian_login_puppeteer's Introduction

zhilian_login_puppeteer

安装好 node 环境

安装好typescript环境

安装好python3.7环境

> git clone ...
> cd zhilian_login_puppeteer
> docker-compose up -d
> tsc
> pm2 start gap_detection_server.py --interpreter python3.7
> pm2 start sms_service.py --interpreter python3.7
> pm2 start server.js --name zhilian_login_server

POST http://127.0.0.1:4007/

{"mobile":"12312341234","proxy":"--proxy-server=http://ip:port"}

如果验证码识别正确,手机号会收到短信,此时:

POST http://127.0.0.1:4006/sms-cache/

    {"channel":"2","mobile":"12312341234","sms":"123456"}

    此接口会把短信传到运行中的browserless 浏览器中,完成登录

登录完成后,4007接口会返回[{}]类型的cookies。

登录过程如果出错,4007接口会返回"failed"字符串

如果验证码识别失败,4007接口会直接返回字符串“failed”

zhilian_login_puppeteer's People

Contributors

icedrunkard 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.