Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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")

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

=+ What are their individual interests regarding bargaining issues?

Answered: 1 week ago