
import socket



def        UpperCamelCase    (							):
					'''simple docstring'''
					lowercase							=						socket.socket(socket.AF_INET ,			socket.SOCK_STREAM		)
					lowercase							=						socket.gethostname()
					lowercase							=						1_2312

					sock.connect((host, port)		)
					sock.send(B'''Hello server!'''		)

					with open('''Received_file''' ,			'''wb'''		) as out_file:
										print('''File opened'''		)
										print('''Receiving data...'''		)
										while True:
															lowercase							=						sock.recv(1024		)
															if not data:
																				break
															out_file.write(lowerCAmelCase__		)

					print('''Successfully received the file'''		)
					sock.close()
					print('''Connection closed'''		)


if __name__ == "__main__":
							main()






import requests
from bsa import BeautifulSoup



def        UpperCamelCase    (							lowerCAmelCase__ = "https://www.worldometers.info/coronavirus"		):
					'''simple docstring'''
					lowercase							=						BeautifulSoup(requests.get(lowerCAmelCase__		).text ,			'''html.parser'''		)
					lowercase							=						soup.findAll('''h1'''		)
					lowercase							=						soup.findAll('''div''' ,			{'''class''': '''maincounter-number'''}		)
					keys += soup.findAll('''span''' ,			{'''class''': '''panel-title'''}		)
					values += soup.findAll('''div''' ,			{'''class''': '''number-table-main'''}		)
					return {key.text.strip(): value.text.strip() for key, value in zip(lowerCAmelCase__ ,			lowerCAmelCase__		)}


if __name__ == "__main__":
							print("\033[1m" + "COVID-19 Status of the World" + "\033[0m\n")
							for key, value in world_covidaa_stats().items():
														print(F'{key}\n{value}\n')




