---
title: "Discussion on \"How to watch a YouTube video using python with just  2 lines of code\" | Hashnode"
description: "Discussion on \"How to watch a YouTube video using python with just  2 lines of code\". Hey Guys!\nWelcome back to another brand new post of  Sai Ansul's Blog.\nToday we are gonna find out  How to watch a YouTube video using python with just  2 lines of code , yes you heard it right just 2 lines of code.\nSo the process of this is also sim..."
url: "https://hashnode.com/posts/how-to-watch-a-youtube-video-using-python-with-just-2-lines-of-code/60a20f9423723215ec2fe81d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to watch a YouTube video using python with just 2 lines of code](https://saiansul.hashnode.dev/how-to-watch-a-youtube-video-using-python-with-just-2-lines-of-code?utm_source=hashnode&utm_medium=feed)

Hey Guys! Welcome back to another brand new post of Sai Ansul's Blog. Today we are gonna find out How to watch a YouTube video using python with just 2 lines of code , yes you heard it right just 2 lines of code. So the process of this is also sim...

May 17, 2021 · 3 min read · saiansul.hashnode.dev  
Updated May 19, 2021  
Read the article

-   [#youtube](https://hashnode.com/tag/youtube)
-   [#automation](https://hashnode.com/tag/automation)
-   [#python](https://hashnode.com/tag/python)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Sai Ansul](https://hashnode.com/@SaiAnsul)

@SaiAnsul · India

  
[View profile](https://hashnode.com/@SaiAnsul)

## Responses 3

Markdown supported · ⌘↵ to post

[Finn Smith](https://hashnode.com/@FinnSmithFG)

[Mar 21, 2022](https://hashnode.com/posts/how-to-watch-a-youtube-video-using-python-with-just-2-lines-of-code/60a20f9423723215ec2fe81d/comment/623885ba6ac82a57d1f1ef72)

I love watching new movies and I know there are channels on YouTube that add a lot of movies to their pages for free to watch, but video ads are becoming more intrusive, so I can't enjoy watching as usual. So I needed the opportunity to watch the video without a break for advertising. We managed to find a cool program [youtube vanced](https://websitepin.com/youtube-vanced-apk-download/) thanks to it you can watch videos from YouTube without advertising, it is possible because the videos are downloaded directly to the phone and the quality is maintained. Now I can safely enjoy watching the video.

[Neev Thakkar](https://hashnode.com/@Neev05)

[May 17, 2021](https://hashnode.com/posts/how-to-watch-a-youtube-video-using-python-with-just-2-lines-of-code/60a20f9423723215ec2fe81d/comment/60a2b95d3ef3832fdd0f9f24)

Awesome....Very nice....Keep it up😊😊👍👍

[Sai Ansul](https://hashnode.com/@SaiAnsul)

[May 17, 2021](https://hashnode.com/posts/how-to-watch-a-youtube-video-using-python-with-just-2-lines-of-code/60a20f9423723215ec2fe81d/comment/60a2b95d3ef3832fdd0f9f24#reply-60a2ba623ef3832fdd0f9f42)

Thanks, glad to know you found it interesting.💯

[Siddharth Chandra](https://hashnode.com/@chandraji)

[May 17, 2021](https://hashnode.com/posts/how-to-watch-a-youtube-video-using-python-with-just-2-lines-of-code/60a20f9423723215ec2fe81d/comment/60a2135db66a0b15ebfcaabc)

Awesome post [Sai Ansul](https://hashnode.com/@SaiAnsul)

Thank you so much for the mention!

[Sai Ansul](https://hashnode.com/@SaiAnsul)

[May 17, 2021](https://hashnode.com/posts/how-to-watch-a-youtube-video-using-python-with-just-2-lines-of-code/60a20f9423723215ec2fe81d/comment/60a2135db66a0b15ebfcaabc#reply-60a216b3b66a0b15ebfcabb2)

Thanks, your words means a lot, Btw your articles are amazing!💯
