Skip to content

A Python script to automatically get the daily coins on Chrono.gg

License

Notifications You must be signed in to change notification settings

zuosc/AutoChronoGG

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AutoChronoGG

A Python script to automatically get the daily coins on Chrono.gg

Format:

The format is pretty straightforward, the program only needs your Authorization Token in order to have access to your Chrono.gg session.

Usage: ./chronogg.py "<Authorization Token (starts with JWT, first execution only)>"

In order to obtain your Authorization Token, you must follow these steps:

  • Head to https://chrono.gg/ and login
  • Right-click anywhere -> Inspect Element -> Go to the network tab -> Filter by XHR
  • Keep the network tab open and refresh the page
  • Some requests will appear, click "account" and copy the Authorization header under "Request Headers". It should start with "JWT", followed by a train of characters. Make sure you copy all of it!

You only need need to do this once because AutoChronoGG will remember your authorization token (if valid).

Optional: Crontab

This script is meant to be run once per day, so here goes a crontab example for the lazy:

0 17 * * * root cd /usr/local/bin/ && ./chronogg.py
    

if you want know response,you can use like this:

0 */2 * * * python3 chronogg.py >>/var/log/autochronogg.log 2>&1

About

A Python script to automatically get the daily coins on Chrono.gg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%