Python Forum
requests problem - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: requests problem (/thread-23378.html)



requests problem - abdlwafitahiri - Dec-26-2019

I have a problem, when I want to check whether it exists or not
He tells me that all emails are there even though they aren't.
Think of the problem as: data = {'email': email}
is there a solution to this problem !


import requests

url = 'http://www.etsy.com/forgot_email?email='

arq = open('list.txt','r').readlines()
for line in arq:
    email = line.strip()
    http = requests.post(url, data={'email': email,})
    content = http.content
    if "Okay!" or "D'accord !" in content:
        print ("======> this "+email+" is true ")
    else:
        print("email in valid : "+email)



RE: requests problem - buran - Dec-26-2019

line 10. read https://python-forum.io/Thread-Multiple-expressions-with-or-keyword