

import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

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







'''simple docstring'''



def A ():
						for n in range(1					,      1000000						):
												yield n * (n + 1) // 2


def A (__lowerCamelCase :List[Any]						):
						_lowerCAmelCase    		=					1
						_lowerCAmelCase    		=					2
						while i * i <= n:
												_lowerCAmelCase    		=					0
												while n % i == 0:
																		n //= i
																		multiplicity += 1
												divisors_count *= multiplicity + 1
												i += 1
						if n > 1:
												divisors_count *= 2
						return divisors_count


def A ():
						return next(i for i in triangle_number_generator() if count_divisors(__lowerCamelCase						) > 500						)


if __name__ == "__main__":
						print(solution())
