---
title: "Discussion on \"Build a simple YouTube video downloader using Python and Django\" | Hashnode"
description: "Discussion on \"Build a simple YouTube video downloader using Python and Django\". This tutorial will show you how to create a simple application that downloads YouTube videos. We can do this in few lines of Python code, basic HTML and Django.\nWhat we need?\npytube: We will be using pytube library. 'pytube' (https://pytube.io/en/lat..."
url: "https://hashnode.com/posts/build-a-simple-youtube-video-downloader-using-python-and-django/61f7b7fb66fcfc728be1befe"
---

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

Discussion

# [Build a simple YouTube video downloader using Python and Django](https://wulfi.hashnode.dev/build-a-simple-youtube-video-downloader-using-python-and-django?utm_source=hashnode&utm_medium=feed)

This tutorial will show you how to create a simple application that downloads YouTube videos. We can do this in few lines of Python code, basic HTML and Django. What we need? pytube: We will be using pytube library. 'pytube' (https://pytube.io/en/lat...

Jan 31, 2022 · 3 min read · wulfi.hashnode.dev  
Updated Jun 6, 2022  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#django](https://hashnode.com/tag/django)
-   [#youtube](https://hashnode.com/tag/youtube)

## Written by

[Wulfi](https://hashnode.com/@Wulfi)

@Wulfi

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

Full Stack Software Engineering. Fascinated by APIs. Follow me on Twitter for more!

Full Stack | building, breaking, tricking my brain

## Responses 1

Markdown supported · ⌘↵ to post

[Daniel Clay](https://hashnode.com/@modapks)

[Jan 31, 2022](https://hashnode.com/posts/build-a-simple-youtube-video-downloader-using-python-and-django/61f7b7fb66fcfc728be1befe/comment/61f7c23a66fcfc728be1c041)

Well shall I look at the project or [how to download youtube videos](https://www.apkrepo.com/newpipe-apk/) ?

Joke apart.. there is a lot to learn from your guide that uses the Django framework. Also, I have a question. Will it be able to download the videos those are restricted by default to be able to download?

I see that this project just uses the stream.download() to download the stream file without going for extra check or verification.

[Wulfi](https://hashnode.com/@Wulfi)

[Jan 31, 2022](https://hashnode.com/posts/build-a-simple-youtube-video-downloader-using-python-and-django/61f7b7fb66fcfc728be1befe/comment/61f7c23a66fcfc728be1c041#reply-61f8032b66fcfc728be1c8fb)

Actually I would like to thank you for pointing out, I haven't thought of going further but there are a lot more feature we can try out with this 'very serious, lightweight, dependency-free Python library' mentioned here ([pypi.org/project/pytube](https://pypi.org/project/pytube/)).

Well for someone who is starting with Django, Python, pytube, this may be an interesting and a fun beginner project if not there's a next step too. If you say 'how to download youtube videos?', we may get many options to choose from the websites or applications available out there but it is good if can create our own. Moreover, this library does not use any third-party dependencies and aims to be highly reliable.

I won't be able to say we can download the restricted videos as it is restricted but I'm sure some of them can't be downloaded we can check it by checking the properties of objects.

Similarly, any checks can be done by creating the objects and getting its properties.

Links:

1.  [studytonight.com/post/pytube-to-download-youtube-…](https://www.studytonight.com/post/pytube-to-download-youtube-videos-with-python)
    
2.  [pypi.org/project/pytube](https://pypi.org/project/pytube/)
    

[Daniel Clay](https://hashnode.com/@modapks)

[Jan 31, 2022](https://hashnode.com/posts/build-a-simple-youtube-video-downloader-using-python-and-django/61f7b7fb66fcfc728be1befe/comment/61f7c23a66fcfc728be1c041#reply-61f836319030330a7b25a19c)

[Wulfi](https://hashnode.com/@Wulfi) Thanks for a detailed answer. Yes, true that this is a beginner project and can be made giant if one is really interested to go in depth.
