Giter Site home page Giter Site logo

stephanakkerman / axie-scholar-stats Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 365 KB

Uses Google Spreadsheets to always keep track of historical data of your scholars in Axie Infinity. Includes tons of information and a clear overview of what your scholars are up to.

License: MIT License

Python 100.00%
axie axie-infinity spreadsheet gspread pandas cryptocurrency cryptocurrencies nft nfts python

axie-scholar-stats's Introduction

Scholar Stats

This is a simple python script for saving the historical data of your scholars.

Features

Overview of:

  • Daily SLP
  • Daily $
  • Daily Average SLP
  • Total SLP
  • Total $
  • Manager Share SLP
  • Manager Share $
  • Scholar Share SLP
  • Scholar Share $
  • SLP Price
  • Daily overview of SLP on scholars accounts
  • Specific overview of every scholar For more see the screenshots below.

Dependencies

The required packages to run this code can be found in the requirements.txt file. To run this file, execute the following code block:

$ pip install -r requirements.txt 

Alternatively, you can install the required packages manually like this:

$ pip install <package>

Setup

Start by cloning the repository.

Next, get your authentication.json file, by following the steps below carefully. Or follow the instructions from this (starts from 1:58) video

If you prefer written instructions follow the instructions below:

After follow the instructions above, last things you need to do is this:

  • Save your authentication.json file in the same folder as you saved the files for this script.
  • Open authentication.json and copy the email behind "client_email": auth
  • Open Google Drive and go to the folder that you want the bot to make the spreadsheets in, right click on that folder and press share drive1
  • Share the folder with the client email out of authentication.json drive2

Then after that is done, go to the folder where this repository is stored and execute the following code block:

python src/setup.py

This will setup the Spreadsheet and worksheet for you in Google Drive. After doing that you will need to fill in the information of your scholars. If you are not sure what you should fill in here, check the examples below.

If you filled out the information you are done and at last you need to execute this code:

python src/main.py

Note

The same method as described here is also used for setting up our Discord bot. So if you would like to have a Discord bot to manage your scholars, be sure to check out that repository.

Examples

This is how your "Scholars" worksheet should look like if you want the basic functioning: Basic functioning

After running this the code this is how your spreadsheet should look like: Result

axie-scholar-stats's People

Contributors

imgbotapp avatar stephanakkerman avatar

Stargazers

 avatar

Watchers

 avatar  avatar

axie-scholar-stats's Issues

Fix this

Exception in thread Thread-18:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 1166, in run
self.function(*self.args, **self.kwargs)
File "Scholar_Stats.py", line 48, in get_stats
updated_on = datetime.datetime.utcfromtimestamp(wallet_data["cache_last_updated"]/1000).strftime('%m-%d, %H:%M')
KeyError: 'cache_last_updated'

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.