


"""simple docstring"""




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(10000):
			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')}''')






"""simple docstring"""




from __future__ import annotations


def     lowercase			(SCREAMING_SNAKE_CASE_		:				str  )   ->						list[int]:
						return [ord(SCREAMING_SNAKE_CASE_  ) - 96 for elem in plain]


def     lowercase			(SCREAMING_SNAKE_CASE_		:				list[int]  )   ->						str:
						return "".join(chr(elem + 96  ) for elem in encoded  )


def     lowercase			()   ->						None:
						SCREAMING_SNAKE_CASE													=					encode(input('-> '  ).strip().lower()  )
						print('Encoded: ' ,			SCREAMING_SNAKE_CASE_  )
						print('Decoded:' ,			decode(SCREAMING_SNAKE_CASE_  )  )


if __name__ == "__main__":
	main()


