# -*- coding: utf-8 -*-
"""
@author: Dell Created on Sun Dec 29 17:26:43 2019
"""
import re
import time
import queue
import threading
import requests
def getpagesource(url):
"""获取网页源码"""
try:
resp = requests.get(url)
if resp.status_code == 200:
return resp.content.decode("utf-8")
except:
return ""
pass
def getemaillist(page_source):
"""根据网页源代码抓取一个页面的所有邮箱"""
try:
pattern = r"([a-zA-Z0-9_.+-]# -*- coding: utf-8 -*-
"""
@author: Dell Create