
"""simple docstring"""

from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
  SCREAMING_SNAKE_CASE_    					=						input('''Enter image url: ''').strip()
  print(F'Downloading image from {url} ...')
  SCREAMING_SNAKE_CASE_    					=						BeautifulSoup(requests.get(url).content, '''html.parser''')
  # The image URL is in the content field of the first meta tag with property og:image
  SCREAMING_SNAKE_CASE_    					=						soup.find('''meta''', {'''property''': '''og:image'''})['''content''']
  SCREAMING_SNAKE_CASE_    					=						requests.get(image_url).content
  SCREAMING_SNAKE_CASE_    					=						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}.')





"""simple docstring"""

def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return number | (1 << position)




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return number & ~(1 << position)




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return number ^ (1 << position)




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      bool:






    """simple docstring"""




    return ((number >> position) & 1) == 1




def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




    return int((number & (1 << position)) != 0 )


if __name__ == "__main__":
   import doctest

   doctest.testmod()



