





'''simple docstring'''


from datetime import datetime

import requests


def 	__a(SCREAMING_SNAKE_CASE_  :					str    ):



    '''simple docstring'''





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


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









'''simple docstring'''


from __future__ import annotations


def 	__a(SCREAMING_SNAKE_CASE_  :					float		,       SCREAMING_SNAKE_CASE_  :					float		,       SCREAMING_SNAKE_CASE_  :					float    ):



    '''simple docstring'''





    if (voltage, current, resistance).count(0    ) != 1:
        raise ValueError("One and only one argument must be 0"    )
    if resistance < 0:
        raise ValueError("Resistance cannot be negative"    )
    if voltage == 0:
        return {"voltage": float(current * resistance    )}
    elif current == 0:
        return {"current": voltage / resistance}
    elif resistance == 0:
        return {"resistance": voltage / current}
    else:
        raise ValueError("Exactly one argument must be 0"    )


if __name__ == "__main__":
       import doctest

       doctest.testmod()


