


'''simple docstring'''



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__":
		__A	='%20'.join(argv[1:]) if len(argv) > 1 else quote(str(input('Search: ')))

		print('Googling.....')

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

		__A	=requests.get(
		    url,
		    headers={'User-Agent': str(UserAgent().random)},
		)

		try:
				__A	=(
				    BeautifulSoup(res.text, 'html.parser')
				    .find('div', attrs={'class': 'yuRUbf'})
				    .find('a')
				    .get('href')
				)

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

		webbrowser.open(link)



'''simple docstring'''



def     _UpperCamelCase      (		UpperCamelCase__ ,      UpperCamelCase__ ,      UpperCamelCase__ ,      UpperCamelCase__					):
			if height >= 1:
						move_tower(height - 1 ,      UpperCamelCase__ ,      UpperCamelCase__ ,      UpperCamelCase__					)
						move_disk(UpperCamelCase__ ,      UpperCamelCase__					)
						move_tower(height - 1 ,      UpperCamelCase__ ,      UpperCamelCase__ ,      UpperCamelCase__					)







def     _UpperCamelCase      (		UpperCamelCase__ ,      UpperCamelCase__					):
			print("""moving disk from""" ,      UpperCamelCase__ ,      """to""" ,      UpperCamelCase__					)







def     _UpperCamelCase      (		):
			UpperCAmelCase__  :					List[str]        =     int(input("""Height of hanoi: """					).strip()					)
			move_tower(UpperCamelCase__ ,      """A""" ,      """B""" ,      """C"""					)


if __name__ == "__main__":
		main()