Fulbacho Python API Wrapper to use with resultados-futbol.com . Tested on Python 3.6
Install the libs
pip install -r requirements.txt
Rename .env.example > .env
The File fulbacho.ini will be created at the initilization config.
When you start it the app create a file called fulbacho.ini
pip install git+https://github.com/villadalmine/fulbacho.git
Setup (APITOKEN requiered):
import fulbacho
from fulbacho import fulbacho
from fulbacho.fulbacho import Fulbacho
from fulbacho.fulbacho import FulbachoLiga
from fulbacho.liga import Liga
from fulbacho.common import configure, log_message, log_error
from fulbacho.connections import Client, Server
futbol = Fulbacho()
futbol.initialize_config()
#List loaded leagues
futbol.getListOfLeagues()
#Get info of a country
futbol.getLeaguesInfo("Argentina")
#Get info of a league
futbol.getInfoLeague("33424")
Resultados-Futbol API Doc: http://www.resultados-futbol.com/api
Go to test directory and run
--- IMPORTANT ---
-
CHECK HOW TO RELOAD CONFIG fulbacho.ini
-
Function get_url_status neet to be checked because one previous error on the api was saved in headers of response and faill all.
-
Show all matches from today, a method create the url for list all matches of current day.
-
Use the previous method in order to show all matched for today of a specific league loaded in the json classes
--- TO INTEGRATE WITH BOT ---
- Make a function to show all data of a specific League
The MIT License (MIT)
Copyright (c) 2016 Felipe Aránguiz | Sebastián Aránguiz
See LICENSE