Giter VIP home page Giter VIP logo

airport-freedom-checkin's Introduction

Scientific Internet Access

Automatically check in on the "Airport"(机场) platform everyday, just for knowledge freedom is more cost-effective.

  • update user.config set user username password

    • cd _data && mv user.config.template user.config
    • vi user.config
  • You can use a scheduled task to run the script e.g. crontab 30 9 * * * /user-path/run.py

  • It is recommended to use cloud functions such as AWS Lamdba, Tencent Cloud SCF, Aliyun Function Compute etc.

Use Tencent Cloud SCF

  • Send check in result to personal Wechat use 「Server酱」,英文名「ServerChan」

    • cd _data && mv server-chan-key.template server-chan-key
    • vi server-chan-key
  • account or sub account grant permission: QcloudSCFFullAccess

  • Create Function

    • python deploy/create-qcloud-scf-func.py
    • You can do it manually in the console
  • Create Function Trigger

    • python deploy/create-qcloud-scf-trigger.py
    • You can do it manually in the console
  • Invoke Function

    • python deploy/run-qcloud-scf.py
    • You can do it manually in the console

  • Deploy / Update Code to Tencent SCF (Serverless Cloud Function)
    • manually create SCF in Tencent Cloud Console
    • manually set user.config to SCF environment variable
    • cd _data && mv qcloud.env.template qcloud.env
    • vi qcloud.env
    • python deploy/deploy-to-qcloud-scf.py

airport-freedom-checkin's People

Contributors

peixin avatar

Stargazers

 avatar

Watchers

 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.