Update EmailHarvester.py

This commit is contained in:
cclauss 2016-04-21 22:45:02 +02:00
parent f5bcb2706f
commit 466ead2c86

View file

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