Skip to content

Commit

Permalink
init players db function (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
oczkers committed Oct 4, 2016
1 parent 14796b7 commit 1ec1149
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fut/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@ def teams(year=2017):
return teams


def players():
"""Return all players in dict
?? (id, r, n, f, l,) == (id, rank, nationality(?), first name, last name). ??
"""
# TODO: convert json to nice dict/object
rc = requests.get('http://cdn.content.easports.com/fifa/fltOnlineAssets/CC8267B6-0817-4842-BB6A-A20F88B05418/2017/fut/items/web/players.json').json
# rc['Players'] # = list
# rc['LegendPlayers'] # = list


class Core(object):
def __init__(self, email, passwd, secret_answer, platform='pc', code=None, emulate=None, debug=False, cookies=cookies_file):
self.credits = 0
Expand Down

0 comments on commit 1ec1149

Please sign in to comment.