






'''simple docstring'''
import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

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



'''simple docstring'''
def 	_lowerCAmelCase (						_UpperCamelCase						:					int = 50    )				->      int:
     """simple docstring"""




     _SCREAMING_SNAKE_CASE							   =[[0] * 3 for _ in range(length + 1    )]

     for row_length in range(length + 1    ):
          for tile_length in range(2							,			5    ):
               for tile_start in range(row_length - tile_length + 1    ):
                    different_colour_ways_number[row_length][tile_length - 2] += (
                        different_colour_ways_number[row_length - tile_start - tile_length][
                            tile_length - 2
                        ]
                        + 1
                    )

     return sum(different_colour_ways_number[length]    )


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