Python Forum
How can I get Python Bulk Email Verification Script With API?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I get Python Bulk Email Verification Script With API?
#1
Hello Everyone,
I have an email verification API and I want to use it through Python.
I wanna make a Python script identical may be it should accept email list in the form of text or csv file, checks them through the API, then exports the results in each file accordingly; Valid, Invalid and Unknown.

How to do it? And is there an already template that I can obtain and just add my API key to it?

Thanks in Advance
Reply
#2
Using Requests is the common way to talk to an API in Python.
Most API will get JSON back,so when use Requests will automatically decode return JSON to a Python dictionary.
Example.
>>> import requests
>>> 
>>> response = requests.get('https://api.github.com/users/defunkt')
>>> response.status_code
200
# Get json return data
>>> data = response.json()
>>> data['login']
'defunkt'
>>> data['bio']
'🍔'

# As it's now a dictionary can eg use get() method 
>>> data.get('name', 'No data from this requests')
'Chris Wanstrath'
>>> data.get('car', 'No data from this requests')
'No data from this requests' 
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Bulk loading of data using python shivamsvmsri 2 615 Sep-28-2023, 09:04 AM
Last Post: shivamsvmsri
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,009 Jun-29-2023, 11:57 AM
Last Post: gologica
  Need Outlook send email code using python srikanthpython 3 8,092 Feb-28-2021, 01:53 PM
Last Post: asyswow64
Video Python Bulk Email Verification Script With API Aj1128 0 2,595 Nov-28-2020, 11:38 AM
Last Post: Aj1128
  Bulk add column to dataframe sambanerjee 1 2,097 Sep-24-2020, 07:34 PM
Last Post: sambanerjee
  Sending Out Email via Python JoeDainton123 1 4,701 Aug-31-2020, 12:54 AM
Last Post: nilamo
  How to send email using python? Gigux 2 2,784 Jul-04-2020, 07:53 AM
Last Post: Gigux
  I am trying to send an email with python nick235 9 5,203 Jun-29-2020, 06:40 PM
Last Post: nick235
  How to kill a bash script running as root from a python script? jc_lafleur 4 5,793 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  bulk update in elasticsearch pythonlearner1 1 5,921 Jun-10-2020, 10:01 PM
Last Post: pythonlearner1

Forum Jump:

User Panel Messages

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