Giter Club home page Giter Club logo

ceac_tracker's Introduction

Quick Start

Install Package

pip instsall -e ./ -v

Init Database

python ceac_tracker/db/sqlite_store.py

Insert application_id to database manually.

Configure Third-Party Service Keys

cp ceac_tracker/config/keys_template.json ceac_tracker/config/keys.json

Then edit keys.json

Refresh Once

python ceac_tracker/refresh_once.py

Run Periodically

# The number indicates interval in seconds
python ceac_tracker/refresh_periodically.py 3600

# Run in background. `-u` means disable output buffer
# or nohup.out will have no log.
nohup python -u ceac_tracker/refresh_periodically.py 3600&

For Developers: How to Replace Third-Party Services

I use 2captcha to resolve captcha.

And use DingTalk Robot for notification.

You probably need to replace them if you don't want to use these two service.

To replace captcha resolving service, you need to implement another resolve_captcha(image_base64) function similar to what in two_captcha_resolve.py, and replace all resolve_captcha to your own function.

def resolve_captcha(image_base64: str) -> str:
    pass

To replace notification service, try to replace ding_talk_notice(msg) to your own function.

Sorry for the unplugable code, but it's only for my own use now. Welcome for pull requests to make it better.

ceac_tracker's People

Contributors

lixin-wei avatar wuhao21 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.