Comunio API Python
It is a simple API to get the information from your Comunio account and use it for your benefit.
In this API you can see the difference between a player (football) and a user (who plays Comunio).
Comunio is a web game where you are a manager of a team.
Forked from: comuniopy-v0.1
python setup.py install
You can use a config file with the user and login for testing.
[comunio]
user=USERNAME
passwd=PASSWORD
ComunioPy import Comunio
test = Comunio(USER,PASS,LEAGUE)
test.login()
uid = test.get_myid()
money = test.get_money()
teamvalue = test.team_value()
from ComunioPy import Comunio
test = Comunio(USER,PASS,LEAGUE)
test.login()
news = []
news = test.get_news()
This function is included in login()
Get the standings of the community and return a list with the elements:
position uid player points teamvalue
Get the information of a user and return a list with:
name email community_name points name number_notices list_of_players
Return a list with the name of players
position uid player points teamvalue
Return info about the football player.
[name,position,team,points,price]
Return ID of the football player name.
Get info about a real team players using a ID
teamname,[player list]
Returns the ID of a team to use with test.club(cid)
cid = test.team_id('Valencia')
players = []
club,players = test.club(cid)
Get the ID of a real user.
pid = test.user_id('username')
info = []
info = test.user_info(pid)
Returns the football players currently on sale. Yout could retrieve only computer players on sale.
[[name, team, min_price, market_price, points, date, owner, position]]
Get bids made to you.
[[player,owner,team,money,date,datechange,status],]
Get your bids made for.
[[player,owner,team,money,date,datechange,status],]
Javier CorbĂn (javi.corbin@gmail.com/@korbin/Website)