Python code (Pytube) to download YouTube videos and ads via this by 3 ways : 1)Directly By URL 2)By video Id 3)By debug info(only for ads) . Downloaded videos data updated in json file .