





import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
					print("Googling.....")
					UpperCamelCase__											= "https://www.google.com/search?q=" + " ".join(sys.argv[1:])
					UpperCamelCase__											= 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(10_000):
															out_file.write(data)
					UpperCamelCase__											= BeautifulSoup(res.text, "html.parser")
					UpperCamelCase__											= 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')}""")











def     _UpperCamelCase     (a__   :int       ):






							"""simple docstring"""





							if divisor % 5 == 0 or divisor % 2 == 0:
														return 0
							UpperCamelCase__				     =			1
							UpperCamelCase__				     =			1
							while repunit:
														UpperCamelCase__				     =			(10 * repunit + 1) % divisor
														repunit_index += 1
							return repunit_index





def     _UpperCamelCase     (a__   :int = 100_0000       ):






							"""simple docstring"""





							UpperCamelCase__				     =			limit - 1
							if divisor % 2 == 0:
														divisor += 1
							while least_divisible_repunit(a__       ) <= limit:
														divisor += 2
							return divisor


if __name__ == "__main__":
					print(f"""{solution() = }""")




