




import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
							print("Googling.....")
							UpperCAmelCase_		:					str          =  "https://www.google.com/search?q=" + " ".join(sys.argv[1:])
							UpperCAmelCase_		:					int          =  requests.get(url, headers={"UserAgent": UserAgent().random})
							# res.raise_for_status()
							with open("project1a.html", "wb") as out_file:  # only for knowing the class
														for data in res.iter_content(10000):
																					out_file.write(data)
							UpperCAmelCase_		:					Optional[Any]          =  BeautifulSoup(res.text, "html.parser")
							UpperCAmelCase_		:					Optional[Any]          =  list(soup.select(".eZt8xd"))[:5]

							print(len(links))
							for link in links:
														if link.text == "Maps":
																					webbrowser.open(link.get("href"))
														else:
																					webbrowser.open(F"""https://google.com{link.get("href")}""")










import unittest

from accelerate import debug_launcher
from accelerate.test_utils import require_cpu, test_ops, test_script




@require_cpu
class 		__A   (      unittest.TestCase      ):

						def      A__    (		self :Tuple			):
										'''simple docstring'''

										debug_launcher(test_script.main			)


						def      A__    (		self :Dict			):
										'''simple docstring'''

										debug_launcher(test_ops.main			)




