Skip to content

Commit 2e67226

Browse files
committed
Updated Conflict Path
2 parents 6022c39 + feb3519 commit 2e67226

File tree

2 files changed

+20
-9
lines changed
  • Scripts/Web_Scrappers

2 files changed

+20
-9
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# We will be using the search() function from the googlesearch module.
2+
from googlesearch import search
3+
4+
def query_finder(query):
5+
for item in search(query, tld = "co.in", num=10, stop = 10, pause = 2):
6+
print(item)
7+
8+
if __name__ == "__main__":
9+
query = input("Enter your query : ") # This is the text that you want to search for.
10+
query_finder(query)
11+
12+
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1+
# We will be using the search() function from the googlesearch module.
12
from googlesearch import search
23

3-
def gSearch(query : str) -> str:
4+
def query_finder(query : str):
5+
for item in search(query, tld = "co.in", num=10, stop = 10, pause = 2):
6+
print(item)
47

5-
for item in search(query, tld = "co.in", num=10, stop = 10, pause = 2):
6-
print(item)
7-
88
if __name__ == "__main__":
9-
# This is the text that you want to search for.
10-
query = input("Enter your query : ")
11-
12-
# Search Function called
13-
gSearch(query)
9+
query = input("Enter your query : ") # This is the text that you want to search for.
10+
query_finder(query)
11+
12+

0 commit comments

Comments
 (0)