






from datetime import datetime

import requests


def   lowerCamelCase__			(     lowercase				):

       """simple docstring"""






       SCREAMING_SNAKE_CASE       :      Optional[int]							=    'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
       SCREAMING_SNAKE_CASE       :      Tuple							=    requests.get(base_url + url				).json()[0]['urls'][0]['src']
       return requests.get(SCREAMING_SNAKE_CASE_				).content


if __name__ == "__main__":
   snake_case    				=		input("""Enter Video/IGTV url: """).strip()
   snake_case    				=		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}.""")














from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


snake_case    				=		{
    """configuration_trajectory_transformer""": [
        """TRAJECTORY_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """TrajectoryTransformerConfig""",
    ],
}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   snake_case    				=		[
       """TRAJECTORY_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
       """TrajectoryTransformerModel""",
       """TrajectoryTransformerPreTrainedModel""",
       """load_tf_weights_in_trajectory_transformer""",
   ]


if TYPE_CHECKING:
   from .configuration_trajectory_transformer import (
       TRAJECTORY_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
       TrajectoryTransformerConfig,
   )

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_trajectory_transformer import (
          TRAJECTORY_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
          TrajectoryTransformerModel,
          TrajectoryTransformerPreTrainedModel,
          load_tf_weights_in_trajectory_transformer,
      )


else:
   import sys

   snake_case    				=		_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)






