futapi / fut

fut is a simple library for managing Fifa 19 Ultimate Team.
GNU General Public License v3.0
317 stars 138 forks source link

email codes #395

Open invisible-defects opened 6 years ago

invisible-defects commented 6 years ago

Right now I'm trying to create an autobuyer with GUI, and it's actually quite hard to deal with code=input() in the lib. Have to rewrite the code every time fut gets updated. Maybe add input_code flag to fut.Core's __init__? Or just remove input statement?

oczkers commented 6 years ago

Best idea is to use builtin totp resolver - all You have to do is find totp secret (i'm sure You can find few guides online how to get it for origin) and it's gonna be generated automatically when needed.

Maybe add input_code flag to fut.Core's init?

There is already code param:

fut.Core(email, passwd, platform, code='0123512')

Make sure to pass it as string (with quotes) otherwise it's gonna be converted from 0123 to 123.