


import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

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








def 							__lowercase   ( __lowerCAmelCase							:				int					,    __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float   ):
							return round(float(moles / volume   ) * nfactor   )






def 							__lowercase   ( __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float   ):
							return round(float((moles * 0.0_821 * temperature) / (volume)   )   )






def 							__lowercase   ( __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float   ):
							return round(float((moles * 0.0_821 * temperature) / (pressure)   )   )






def 							__lowercase   ( __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float					,    __lowerCAmelCase							:				float   ):
							return round(float((pressure * volume) / (0.0_821 * moles)   )   )


if __name__ == "__main__":
						import doctest

						doctest.testmod()




