





def    __lowerCamelCase					(							__a   :str    )		->				str:






		"""simple docstring"""

		A__        =   """"""
		for ch in key:
				if ch == " " or ch not in key_no_dups and ch.isalpha():
						key_no_dups += ch
		return key_no_dups







def    __lowerCamelCase					(							__a   :str    )		->				dict[str, str]:






		"""simple docstring"""

		A__        =   [chr(i + 6_5    ) for i in range(2_6    )]
		# Remove duplicate characters from key
		A__        =   remove_duplicates(key.upper()    )
		A__        =   len(__a    )
		# First fill cipher with key characters
		A__        =   {alphabet[i]: char for i, char in enumerate(__a    )}
		# Then map remaining characters in alphabet to
		# the alphabet from the beginning
		for i in range(len(__a    )    ,     2_6    ):
				A__        =   alphabet[i - offset]
				# Ensure we are not mapping letters to letters previously mapped
				while char in key:
						offset -= 1
						A__        =   alphabet[i - offset]
				A__        =   char
		return cipher_alphabet







def    __lowerCamelCase					(							__a   :str    ,     __a   :dict[str, str]    )		->				str:






		"""simple docstring"""

		return "".join(cipher_map.get(__a    ,     __a    ) for ch in message.upper()    )







def    __lowerCamelCase					(							__a   :str    ,     __a   :dict[str, str]    )		->				str:






		"""simple docstring"""

		A__        =   {v: k for k, v in cipher_map.items()}
		return "".join(rev_cipher_map.get(__a    ,     __a    ) for ch in message.upper()    )







def    __lowerCamelCase					(							)		->				None:






		"""simple docstring"""

		A__        =   input("""Enter message to encode or decode: """    ).strip()
		A__        =   input("""Enter keyword: """    ).strip()
		A__        =   input("""Encipher or decipher? E/D:"""    ).strip()[0].lower()
		try:
				A__        =   {"""e""": encipher, """d""": decipher}[option]
		except KeyError:
				raise KeyError("""invalid input option"""    )
		A__        =   create_cipher_map(__a    )
		print(func(__a    ,     __a    )    )


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					main()










from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
					A    :					List[str] =      input('''Enter image url: ''').strip()
					print(F'''Downloading image from {url} ...''')
					A    :					Any =      BeautifulSoup(requests.get(url).content, '''html.parser''')
					# The image URL is in the content field of the first meta tag with property og:image
					A    :					List[Any] =      soup.find('''meta''', {'''property''': '''og:image'''})['''content''']
					A    :					Dict =      requests.get(image_url).content
					A    :					Tuple =      F'''{datetime.now():%Y-%m-%d_%H:%M:%S}.jpg'''
					with open(file_name, '''wb''') as fp:
										fp.write(image_data)
					print(F'''Done. Image saved to disk as {file_name}.''')



