|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 songrui1021 于 2018-10-11 00:55 编辑
https://verify-email.org是个邮件地址有效性验证的网站,可以免费试用5次。
应该是IP限制,使用代理无法突破免费适用的限制,使用代理软件换IP可以突破免费的限制。
求解?
以下是验证邮件地址有效性的方法
https://verify-email.org/home/verify-as-guest/XXXXXXXX@qq.com
替换最后一项邮箱地址即可实现验证
代码奉上,请大神帮忙:
from urllib.error import URLError, HTTPError
import requests
import random
url = "https://verify-email.org/home/verify-as-guest/15513438x@qq.com"
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36'}
# with open('ip.txt', mode='r', encoding='utf-8') as f:
# useful_proxies = f.readlines()
# proxie = random.choice(useful_proxies)
# proxies = {"http":proxie.strip()}
proxies = {"http":"114.234.80.109:9000"}
def email_vertify():
try:
request = requests.get(url,headers=headers,proxies=proxies)
reponse = request.text
print(proxies)
except HTTPError as e:
print('服务器故障!!!')
print('Error code: ', e.code)
except URLError as e:
print('无法连接URL服务器!!!')
print('Reason: ', e.reason)
else:
print("验证完成,准备下次验证.....")
print(reponse)
email_vertify()
|
|