Question
Hello, I have this script that return the invalid email one at the time. Can you please help me modify it so that it check
Hello, I have this script that return the invalid email one at the time. Can you please help me modify it so that it check many emails at once instead? - it has to read the csv file - itirate through the file and return the invalid email addresses.
import requests email_address = str(input('Email: ')) response = requests.get( "https://isitarealemail.com/api/email/validate", params = {'email': email_address}) status = response.json()['status'] if status == "valid": print("email is valid") elif status == "invalid": print("email is invalid") else: print("email was unknown")
import requests email_address = str(input('Email: ')) response = requests.get( "https://isitarealemail.com/api/email/validate", params = \{'email': email_address ) status = response.json()['status'] if status == "valid": print("email is valid") elif status == "invalid": print("email is invalid") else: print("email was unknown") Email
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started