




'''simple docstring'''


from datetime import datetime

import requests
def 						snake_case_       (UpperCamelCase			:    str ):





							'''simple docstring'''


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


if __name__ == "__main__":
				_snake_case : List[Any]  				=						input('Enter Video/IGTV url: ').strip()
				_snake_case : Dict  				=						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 transformers import DistilBertTokenizer, DistilBertTokenizerFast
from transformers.testing_utils import require_tokenizers, slow

from ..bert.test_tokenization_bert import BertTokenizationTest


@require_tokenizers
class      __lowerCAmelCase  (			a       ):






  """simple docstring"""





  _SCREAMING_SNAKE_CASE		     =							DistilBertTokenizer
  _SCREAMING_SNAKE_CASE		     =							DistilBertTokenizerFast
  _SCREAMING_SNAKE_CASE		     =							True



  @slow
  def        lowerCAmelCase__	(  self							:							Tuple	) ->			Optional[Any]:




     """simple docstring"""
     snake_case_            =       DistilBertTokenizer.from_pretrained("distilbert-base-uncased"	)

     snake_case_            =       tokenizer.encode("sequence builders"     ,					add_special_tokens=_lowerCAmelCase	)
     snake_case_            =       tokenizer.encode("multi-sequence build"     ,					add_special_tokens=_lowerCAmelCase	)

     snake_case_            =       tokenizer.build_inputs_with_special_tokens(_lowerCAmelCase	)
     snake_case_            =       tokenizer.build_inputs_with_special_tokens(_lowerCAmelCase     ,					_lowerCAmelCase	)

     assert encoded_sentence == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id]
     assert encoded_pair == [tokenizer.cls_token_id] + text + [tokenizer.sep_token_id] + text_a + [
         tokenizer.sep_token_id
     ]




