





from __future__ import annotations


def _a (  SCREAMING_SNAKE_CASE__      :  Union[str, Any]       )	->    list[int]:

							'''simple docstring'''






							return [ord(_lowerCAmelCase       ) - 96 for elem in plain]


def _a (  SCREAMING_SNAKE_CASE__      :  Dict       )	->    str:

							'''simple docstring'''






							return "".join(chr(elem + 96       ) for elem in encoded       )


def _a (  )	->    None:

							'''simple docstring'''






							SCREAMING_SNAKE_CASE__       :      List[str]     =						encode(input("-> "       ).strip().lower()       )
							print("Encoded: "			,				_lowerCAmelCase       )
							print("Decoded:"			,				decode(_lowerCAmelCase       )       )


if __name__ == "__main__":
		main()













import webbrowser
from sys import argv
from urllib.parse import parse_qs, quote

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
		_lowerCamelCase :    Union[str, Any]  							= '''%20'''.join(argv[1:]) if len(argv) > 1 else quote(str(input('''Search: ''')))

		print('''Googling.....''')

		_lowerCamelCase :    Any  							= f"https://www.google.com/search?q={query}&num=100"

		_lowerCamelCase :    Optional[Any]  							= requests.get(
		    url,
		    headers={'''User-Agent''': str(UserAgent().random)},
		)

		try:
				_lowerCamelCase :    Union[str, Any]  							= (
				    BeautifulSoup(res.text, '''html.parser''')
				    .find('''div''', attrs={'''class''': '''yuRUbf'''})
				    .find('''a''')
				    .get('''href''')
				)

		except AttributeError:
				_lowerCamelCase :    Optional[Any]  							= parse_qs(
				    BeautifulSoup(res.text, '''html.parser''')
				    .find('''div''', attrs={'''class''': '''kCrYT'''})
				    .find('''a''')
				    .get('''href''')
				)['''url'''][0]

		webbrowser.open(link)






