


import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

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







from __future__ import annotations
def   _UpperCamelCase				(						lowerCAmelCase_   )						->None:
   create_state_space_tree(lowerCAmelCase_  ,						[]  ,						0  ,						[0 for i in range(len(lowerCAmelCase_   )   )]   )
def   _UpperCamelCase				(						lowerCAmelCase_  ,						lowerCAmelCase_  ,						lowerCAmelCase_  ,						lowerCAmelCase_  ,						)						->None:

   if index == len(lowerCAmelCase_   ):
      print(lowerCAmelCase_   )
      return

   for i in range(len(lowerCAmelCase_   )   ):
      if not index_used[i]:
         current_sequence.append(sequence[i]   )
         UpperCAmelCase							=     True
         create_state_space_tree(lowerCAmelCase_  ,						lowerCAmelCase_  ,						index + 1  ,						lowerCAmelCase_   )
         current_sequence.pop()
         UpperCAmelCase							=     False
__a     =			[3, 1, 2, 4]
generate_all_permutations(sequence)

__a     =			["A", "B", "C"]







generate_all_permutations(sequence_a)



