


"""simple docstring"""







import warnings

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


a__    :							int            =					logging.get_logger(__name__)




class 			UpperCamelCase_     (			_a):

	"""simple docstring"""





	def __init__(			self      :    Tuple      ,      *UpperCAmelCase__      :    Union[str, Any]      ,      **UpperCAmelCase__      :    Optional[int]       )	->     List[Any]:
						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       )




"""simple docstring"""







from datetime import datetime

import requests




def        UpperCAmelCase__	(lowerCAmelCase_       ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						       =    "https://downloadgram.net/wp-json/wppress/video-downloader/video?url="
					__SCREAMING_SNAKE_CASE						       =    requests.get(base_url + url       ).json()[0]["urls"][0]["src"]
					return requests.get(lowerCAmelCase_       ).content


if __name__ == "__main__":
		a__    :							str            =					input('''Enter Video/IGTV url: ''').strip()
		a__    :							List[Any]            =					F"{datetime.now():%Y-%m-%d_%H:%M:%S}.mp4"
		with open(file_name, '''wb''') as fp:
				fp.write(download_video(url))
		print(F"Done. Video saved to disk as {file_name}.")
