Giter Club home page Giter Club logo

fulbacho's Introduction

Python Fulbacho API Wrapper

Fulbacho Python API Wrapper to use with resultados-futbol.com . Tested on Python 3.6

Go to resultados-futbol

Dev Setup

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

Installation

pip install git+https://github.com/villadalmine/fulbacho.git

Usage

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

Unit Test

Go to test directory and run

TO-DO

--- 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

Licence

The MIT License (MIT)

Copyright (c) 2016 Felipe Aránguiz | Sebastián Aránguiz

See LICENSE

Based on

scottjbarr/bitfinex

delta575/python-surbtc-api

architv/soccer-cli

fulbacho's People

Contributors

villadalmine avatar

Watchers

 avatar  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.