Skip to content

RasmusRynell/Stryktipsetleague-automated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stryktipset

Setup

Make sure you have at least python 3.6.0 installed
Make sure you have chrome installed
*Make sure you have a g++ (and/or make) installed

Navigate into to project, create an environment, activate it, and install the required packages

python3 -m venv env



Activate environment:
Windows:

source env/Scripts/activate 

Or
Unix/MacOS:

source env/bin/activate 



Install packages

python3 -m pip install -r requirements.txt



Create a file named "config.cfg" and fill in the following (example can be found at "config.cfg.example"):

{
    "headless" : true,
    "login_op" : {
        "username" : "YOU'R USERNAME TO ODDS PORTAL",
        "password" : "YOU'R PASSWORD TO ODDS PORTAL"
    },
    "login_stl" : {
        "email" : "YOU'R EMAIL TO STRYKTIPSETETLEAGUE",
        "password" : "YOU'R PASSWORD TO STRYKTIPSETETLEAGUE"
    },
    "sleep_time" : 60,
    "output-email": {
        "from": "DESIRED OUTPUT EMAIL ADDRESS",
        "server": "EMAIL SERVER,
        "port": PORT TO EMAIL SERVER,
        "password": "EMAIL SERVER PASSWORD",
        "to": ["EMAIL ADDRESS TO SEND TO"]
    }
}

Run

From the top folder simply run:

make
python3 ./main.py

Notes

  • When compiling dijkstras remember to compile for 64 bit systems in order to not run out of memory at runtime. (see make-file)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published