mirror of
https://github.com/maldevel/EmailHarvester.git
synced 2024-11-13 03:25:01 +08:00
Update EmailHarvester.py
This commit is contained in:
parent
f5bcb2706f
commit
466ead2c86
1 changed files with 2 additions and 6 deletions
|
@ -97,14 +97,10 @@ class SearchEngine:
|
|||
def do_search(self):
|
||||
try:
|
||||
urly = self.urlPattern.format(counter=str(self.counter), word=self.word)
|
||||
headers = {
|
||||
'User-Agent': self.userAgent,
|
||||
}
|
||||
headers = {'User-Agent': self.userAgent}
|
||||
|
||||
if(self.proxy):
|
||||
proxies = {
|
||||
self.proxy.scheme: "http://" + self.proxy.netloc
|
||||
}
|
||||
proxies = {self.proxy.scheme: "http://" + self.proxy.netloc}
|
||||
r=requests.get(urly, headers=headers, proxies=proxies)
|
||||
else:
|
||||
r=requests.get(urly, headers=headers)
|
||||
|
|
Loading…
Reference in a new issue