Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonCatalyst authored May 3, 2024
1 parent d82241e commit 1eeb2a7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/tools_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ async def follow_redirects_async(url):
return None


from urllib.parse import urlencode, quote_plus
from requests.exceptions import RequestException, HTTPError
from bs4 import BeautifulSoup
import asyncio
import random
import os
import subprocess
from colorama import Fore, Style

async def fetch_google_results(query, language=None, country=None, date_range=None, proxies=None):
all_mention_links = []
all_unique_social_profiles = set()
Expand All @@ -140,7 +149,7 @@ async def fetch_google_results(query, language=None, country=None, date_range=No
# Encode the query
encoded_query = quote_plus(query)

# Construct the Google search URL with filtering options
# Construct the Google search URL with filtering options if provided
params = {'q': encoded_query, 'start': total_results}
if language:
params['lr'] = language # Language parameter (e.g., 'lang_en' for English)
Expand Down

0 comments on commit 1eeb2a7

Please sign in to comment.