-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.py
46 lines (37 loc) · 1.83 KB
/
search.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from googlesearch import search
import os, ssl
if (not os.environ.get('PYTHONHTTPSVERIFY', '') and getattr(ssl, '_create_unverified_context', None)):
ssl._create_default_https_context = ssl._create_unverified_context
print("\n\n ## ## ######## ## ## ### ## ## ")
print(" ### ### ## ## ## ## ## ## ## ## ")
print(" #### #### ## ## ## ## ## ## ## ## ")
print(" ## ### ## ######## ####### ######### ## ## ##### ")
print(" ## ## ## ## ## ## ######### ## ## ")
print(" ## ## ## ## ## ## ### ## ## ### ## ## ")
print(" ## ## ## ## ## ## ### ## ## ### ## ## ")
print(" ")
print("\n Hassan Cypher ")
print(" PAKISTAN ZINDABAD\n ")
print(" Google URL Extractor ")
print(" ")
search_item = input("Enter Dork : ")
pages = int(input("Links : "))
found = []
while (True):
for j in search(search_item,tld="com", num=pages, stop=pages, pause=2):
if j not in found:
found.append(j+'\n')
print(j)
ch = input("X for exit and R for repeat\n").lower()
if ch == 'x':
break
print("\nDo you also want to write this to a file? Type 'yes' or 'no'")
con = input()
if con == "yes":
with open('search.txt', 'w') as w:
w.writelines(found)
print("\nProcess Done, please check search.txt file.\n")
else:
print("\nProcess Done\n")
print("\nMade By CYPHER")
print("Thank You")