"""simple docstring"""


from datetime import datetime

import requests
from bsa import BeautifulSoup

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


import warnings

from ...utils import logging
from .image_processing_chinese_clip import ChineseCLIPImageProcessor


UpperCAmelCase__  		=						logging.get_logger(__name__)


class        a				(		lowerCAmelCase_   ):


    def __init__(					self	:  int   ,				*__lowerCAmelCase	:  List[str]   ,				**__lowerCAmelCase	:  List[str]					):
      warnings.warn(
          """The class ChineseCLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers."""
          """ Please use ChineseCLIPImageProcessor instead."""   ,				__lowerCAmelCase   ,				)
      super().__init__(*__lowerCAmelCase   ,				**__lowerCAmelCase					)
