Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
requests problem
#1
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)
Reply
#2
line 10. read https://python-forum.io/Thread-Multiple-...or-keyword
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  POST requests - different requests return the same response Default_001 3 1,901 Mar-10-2022, 11:26 PM
Last Post: Default_001
  Problem with logging in on website - python w/ requests GoldeNx 6 5,214 Sep-25-2020, 10:52 AM
Last Post: snippsat
  requests problem in python script "content type" abdlwafitahiri 4 3,139 Dec-29-2019, 02:29 PM
Last Post: abdlwafitahiri

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020