From 466ead2c86007a93e4d1858f52a83c29ba023ffd Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 21 Apr 2016 22:45:02 +0200 Subject: [PATCH] Update EmailHarvester.py --- EmailHarvester.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/EmailHarvester.py b/EmailHarvester.py index 47c1c0d..553174e 100644 --- a/EmailHarvester.py +++ b/EmailHarvester.py @@ -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)