Skip to content

Commit

Permalink
issue #6: Nv7-GitHub googlesearch
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahim-kabir committed Mar 22, 2024
1 parent cdc3f35 commit 699e5ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions finesse/google_search.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from googleapi import google
from googlesearch import search

def get_google_search_urls(query: str, num_results: int = 100) -> list[str]:
links = []
search_results = google.search(query, num_results)
print(search_results[0].google_link )
links.append(search_results[0].google_link )
for url in search(query, num_results, sleep_interval=1):
links.append(url)
return links
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locust
regex
git+https://github.com/abenassi/Google-Search-API
googlesearch-python

0 comments on commit 699e5ca

Please sign in to comment.