Skip to content

Commit a96f2a5

Browse files
committed
output improvement
output improvement
1 parent b5bd0d5 commit a96f2a5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

EmailHarvester.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,28 +163,28 @@ def engine_type(engine):
163163
###################################################################
164164

165165
def ask(domain, limit, userAgent, proxy):
166-
print(green("[+] Searching in ASK..\n"))
166+
print(green("\n[+] Searching in ASK..\n"))
167167
url = "http://www.ask.com/web?q=%40{word}"
168168
search = SearchEngine(url, domain, limit, 0, 100, userAgent, proxy)
169169
search.process()
170170
return search.get_emails()
171171

172172
def bing(domain, limit, userAgent, proxy):
173-
print(green("[+] Searching in Bing..\n"))
173+
print(green("\n[+] Searching in Bing..\n"))
174174
url = "http://www.bing.com/search?q=%40{word}&count=50&first={counter}"
175175
search = SearchEngine(url, domain, limit, 0, 50, userAgent, proxy)
176176
search.process()
177177
return search.get_emails()
178178

179179
def google(domain, limit, userAgent, proxy):
180-
print(green("[+] Searching in Google..\n"))
180+
print(green("\n[+] Searching in Google..\n"))
181181
url = 'http://www.google.com/search?num=100&start={counter}&hl=en&q=%40"{word}"'
182182
search = SearchEngine(url, domain, limit, 0, 100, userAgent, proxy)
183183
search.process()
184184
return search.get_emails()
185185

186186
def yahoo(domain, limit, userAgent, proxy):
187-
print(green("[+] Searching in Yahoo..\n"))
187+
print(green("\n[+] Searching in Yahoo..\n"))
188188
url = "http://search.yahoo.com/search?p=%40{word}&n=100&ei=UTF-8&va_vt=any&vo_vt=any&ve_vt=any&vp_vt=any&vd=all&vst=0&vf=all&vm=p&fl=0&fr=yfp-t-152&xargs=0&pstart=1&b={counter}"
189189
search = SearchEngine(url, domain, limit, 1, 100, userAgent, proxy)
190190
search.process()
@@ -238,7 +238,7 @@ def yahoo(domain, limit, userAgent, proxy):
238238
engine = args.engine
239239

240240
if engine == "all":
241-
print(green("[+] Searching everywhere..\n"))
241+
print(green("[+] Searching everywhere.."))
242242
all_emails = (ask(domain, limit, userAgent, args.proxy) +
243243
bing(domain, limit, userAgent, args.proxy) +
244244
yahoo(domain, limit, userAgent, args.proxy) +
@@ -257,7 +257,7 @@ def yahoo(domain, limit, userAgent, proxy):
257257
print(red("No emails found"))
258258
sys.exit(3)
259259

260-
msg = "\n\n[+] {} mails found:".format(len(all_emails))
260+
msg = "\n\n[+] {} emails found:".format(len(all_emails))
261261
print(green(msg))
262262
print(green("-" * len(msg)))
263263

@@ -266,7 +266,7 @@ def yahoo(domain, limit, userAgent, proxy):
266266

267267
if filename:
268268
try:
269-
print(green("[+] Saving files..."))
269+
print(green("\n[+] Saving files..."))
270270
with open(filename, 'w') as out_file:
271271
for email in all_emails:
272272
try:

0 commit comments

Comments
 (0)