Closed TAMILVIP007 closed 1 year ago
Yes and no.
You have the option to specify the number of used keys, if you initalize the client. key_count
can be up to 10 per email.
What happens under the hood is, that coc.py fetches the keys from developer.clashofclans.com, checks them if they are useable (for the correct ip address) and (re-)creates, if needed, key(s).
So no, you can't login directly with multiple emails for one client. But you can use keys to login if you use login_with_keys()
instead of login()
and pass more than 10 keys. You can either get them manually, or iterate through your emails by create a client, login with an email, get the keys (client.http._keys
), store them, logout and login with the next email... . Afterwards you create your final client with the key list and the login_with_keys()
method.
Hmm keys you mean authorisation tokens ryt?. But there is no option to specify several ips there
yes tokens = keys, why would you need several ips? Your script/bot/application can only have one?
No heroku.com (an vps provider) changes ip on every restart.
coc.py will create a new key in that event. It can handle dynamical ip changes for one email account.
Cool then thanks
is there any way to login multiple mail id under same client class?