SlideShare a Scribd company logo
1 | P a g e
AN
INTERNSHIP REPORT
ON
YOUTUBE VIDEO DOWNLOAD USING PYTHON
PROJECT
BY
KAMAL ACHARYA
(Tribhuvan University)
Date: 2022/01/25
2 | P a g e
INTRODUCTION
3 | P a g e
1.1 PROJECT DESCRIPTION:
YOUTUBE VIDEO DOWNLODER
ABSTRACT
In order to form a clear sketch of this project, here's a brief introduction of the
features and scope of YouTube Video Downloader. This project consists of three modules which are
inter-linked to each other. Each of the above modules has certain specific task to perform. Tkinter is
the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way
to create GUI applications. Tkinter provides a powerful object- oriented interface to the Tk GUI toolkit.
Tkinter provides various controls, such as buttons, labels and text boxes used in a GUI application.
These controls are commonly called widgets.Pytube library makes the video downloading very easy.
Create the object of the YouTube module by passing the link as the parameter. Then, get the
appropriate extension and resolution of the video. You can set the name of the file as your convenience,
in another case original name will be kept. After that, download the file using the download function
which has one parameter which is the location where to download the file. Python, this task is very
easy. Few lines of code will download the video from YouTube for you.
Front-End: PYTHON
OBJECTIVE:
Back-End: PYTHON
1. YouTube downloader tools offer fast speed downloading
2. To download multiple videos or playlist
3. The majority of YouTube downloaders allow users to download the entire playlist in a
single click.
4 | P a g e
2. SYSTEM ANALYSIS
2.1 EXISTING SYSTEM
Online YouTube Video Downloaders: These are web-based tools that allow users to
download YouTube videos by simply pasting the video URL into the download box. Some popular
examples of online YouTube video downloaders include Y2Mate, Keep Vid , and Clip Converter.
Browser Extensions: There are various browser extensions available for Google Chrome, Mozilla
Firefox, and other web browsers that allow users to download YouTube videos with ease. Some
popular extensions include Video Download Helper and Fastest Tube. Desktop Software: There are
several desktop software options available that allow users to download YouTube videos to their
computer. Some popular software include 4K Video Downloader, Free YouTube Downloader, and
WinX YouTube Downloader.
2.1.1 DRAWBACKS OF EXISTING SYSTEM
1. Quality Loss.
2. Malware and Viruses.
3. Unreliable.
4. Limited Compatibility.
2.2 PROPOSED SYSTEM
This may involve obtaining permission from video creators before allowing users to download
their content. To ensure the best user experience, it's important to prioritize quality preservation in any proposed
system. This may involve using advanced compression algorithms to minimize quality loss during the
download process. Users depend on YouTube video downloaders to work consistently and reliably. Any
proposed system should undergo rigorous testing to ensure that it works well across different devices and
operating systems. A user-friendly interface can help ensure that users can easily navigate and use the system.
This may involve designing an intuitive download process and providing clear instructions for users.
5 | P a g e
2.2.1 ADVANTAGES OF PROPOSED SYSTEM
1. Legality and Ethics
2. Quality preservation
3. Reliability
4. User Interface
2.3.1 SOFTWARE REQUIRMENTS:
Software is a group of programs that computers need to do a particular task.
Itis an essential requirement of Computer system.
The Software used to develop the project is
 Operating System : Windows 10
 Front-End : PYTHON
 Back-End : PYTHON
2.3.2 HARDWARE REQUIRMENT
The Hardware of the computer consists of physical component such as Input
Devices, Storage Devices, Processing & Control units and Output Devices. Computer includes
external storage unit to store data in programs.
The Hardware Configuration involved in this project.
 Platform : Windows10
 Processor : AMD PRO A4-350B R4, 5 COMPUTE CORES2C +
3G
 CPU Speed : 2.50 GHz
 RAM : 4 GB
2.3 . SYSTEM REQUIREMENTAND SPECIFICATION
6 | P a g e
 Hard Disk : 210 GB
7 | P a g e
2.3.3 SOFTWARE DESCRIPTION
Python is a popular programming language. It was created by Guido van Rossum. and released in
1991.Python was designed for readability, and has some similarities to the English language with
influence from mathematics. Python uses new lines to complete a command, as opposed to other
programming languages which often use semicolons or parentheses. Python relies on indentation,
using whitespace, to define scope; such as the scope of loops. functions and classes. Other
programming languages often use curly-brackets for this purpose.
 Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
 Python has a simple syntax similar to the English language.
 Python has syntax that allows developers to write programs with fewer lines than some other
programming languages.
 Python runs on an interpreter system, meaning that code can be executed as soon as it is
written. This means thatprototyping can be very quick.
 Python can be treated in a procedural way, an object- oriented way or a functional way.
FEATURES OF PYTHON:
Easy to Learn and Use: Python has a simple syntax and structure that makes it easy to learn and use,
even for beginners.
Interpreted: Python is an interpreted language, which means that it can execute code directly without
the need for compilation. This makes it easier to test and debug code.
Multi-Platform Support: Python code can be run on a wide range of platforms, including Windows,
Linux, and macOS.
8 | P a g e
Large Standard Library: Python comes with a large standard library that includes modules for a wide
range of applications, from web development to scientific computing.
Third-Party Libraries and Frameworks: Python has a large and active community of developers who
contribute to open-source libraries and frameworks, making it easy to find resources and support for building
and maintaining Python applications.
9 | P a g e
SYSTEM DESIGN AND
DEVELOPMENT
10 | P a g e
3.1 SYSTEM DESIGN AND DEVELOPMENT
3.1 DATA FLOW DIAGRAM
START
Get video URL
Paste Video URL
Extract video ID
Download Fetched video
END
Save file to directory
11 | P a g e
3.2 MODULE DESCRIPTION
The project having two categories there are
1. File
1. Downloader
2. Mode
3. Help
4. Exit
File
A file description refers to a summary or a detailed explanation of the content, purpose, and structure of
a file. It is often used to provide context and help users understand the contents
Downloader
A video downloader is a type of downloader software that is specifically designed to download video
content from websites
Mode
Light mode and dark mode are two different display modes available in software applications and
devices that allow users to switch between light and dark color schemes.
Help
Help is a type of assistance or support provided to individuals who are in need of guidance, information,
or instruction.
Exit
Exit is a command or action that allows a user to close or terminate a program, application, or system.
12 | P a g e
3.3 SYSTEM DESIGN
The most creative and challenging face of the system development is System Design. It
provides the understanding and procedural details necessary for the logical and physical stages of
development. In designing a new system, the system analyst must have a clear understanding of
the objectives, which the design is aiming to fulfill. The first step is to determine how the output
is to be produced and in what format. Second, input data and master files have to be designed to
meet the requirements ofthe proposed output. The operational phases are handled through program
construction and testing.
3.4 Input Design
In this software, importance is given to develop Graphical User Interface (GUI), which is
an important factor in developing efficient and user friendly software. For inputting user data,
attractive forms are designed. User can also select the desired options from the menu, which
provides all possible facilities. Also the important input format is designed in such a way that
accidental errors are avoided. The user has to input only just the minimum data required, which
also helps in avoiding the errors that the users may make. Accurate designing of the input format
is very important in developing efficient software. The goal of input design is to make entry as
easy, logical and free from errors.
3.5 Output Design
Definition
In the output design, the emphasis is on producing a hard copy of the
format. Two of the most output media
today are printers and the screen. Most users now access their reports from either a hard copy or
screen display. Computer’s output is the most important and direct source of information to the
user, efficient, logical, output design should improve the systems relations with the user and help
in decision-making.
13 | P a g e
SAMPLE OUTPUT:
FILES:
ABOUT:
14 | P a g e
Light mode:
YouTube video link:
15 | P a g e
Contact us:
Gathering URL:
16 | P a g e
File Directory:
Video Fetching:
17 | P a g e
Path setting:
Downloader:
18 | P a g e
Exit:
19 | P a g e
3.6 Code Design
Asgi.py
"""
ASGI config for djangoProject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings')
application = get_asgi_application()
settug.py
"""
Django settings for djangoProject project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
20 | P a g e
from pathlib import
Pathimport os
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path( file ).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '#r*6fh@d&_-_$=xai$jky0h^n(+y4s5jiu-4&w^1dkz=ex(7g2'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['*']
# Application definition
INSTALLED_APPS = [
'ytdl',
'crispy_forms',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes'
,'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
21 | P a g e
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
22 | P a g e
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'djangoProject.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / 'templates']
,
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'djangoProject.wsgi.application'
# Database
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
DATABASES = {
'default':
23 | P a g e
'ENGINE': 'django.db.backends.sqlite3','NAME':
'test',
}
}
# Password validation
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
#
https://docs.djangoproject.com/en/3.1/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
24 | P a g e
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static_serve', 'static_root')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'static_serve', 'media_root')
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static_files")]
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
CRISPY_TEMPLATE_PACK = 'bootstrap4'
# CORS_REPLACE_HTTPS_REFERER = False
# HOST_SCHEME = "http://"
# SECURE_PROXY_SSL_HEADER =
None# SECURE_SSL_REDIRECT = False
# SESSION_COOKIE_SECURE =
False# CSRF_COOKIE_SECURE = False
# SECURE_HSTS_SECONDS = None
# SECURE_HSTS_INCLUDE_SUBDOMAINS = False#
SECURE_FRAME_DENY = False
25 | P a g e
URL.py
"""djangoProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please
see:https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(),
name='home')Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/',
include('blog.urls'))"""
from django.contrib import admin
from django.urls import path
from ytdl import views
urlpatterns = [
path('', views.download_video),
]
Wagi.py
"""
WSGI config for djangoProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
26 | P a g e
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings')
application = get_wsgi_application()
Manage.py
#!/usr/bin/env python
"""Django's command-line utility for administrative
tasks."""import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if name == ' main ':
main()
27 | P a g e
VIEW.PY
from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
from django.shortcuts import render
import youtube_dl
from .forms import DownloadForm
import re
def download_video(request):
global context
form = DownloadForm(request.POST or None)
if form.is_valid():
video_url = form.cleaned_data.get("url")
regex =
r'^(http(s)?://)?((w){3}.)?youtu(be|.be)?(.com)?/.+'if not
re.match(regex,video_url):
return HttpResponse('Enter correct url.')
ydl_opts = {}
try:
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
meta = ydl.extract_info(
video_url,
download=False)
video_audio_streams = []
for m in meta['formats']:
file_size = m['filesize']
if file_size is not None:
file_size = f'{round(int(file_size) / 1000000,2)} mb'
resolution = 'Audio'
28 | P a g e
if m['height'] is not None:
resolution = f"{m['height']}x{m['width']}"
video_audio_streams.append({
'resolution':
resolution,'extension':
m['ext'], 'file_size':
file_size, 'video_url':
m['url']
})
video_audio_streams = video_audio_streams[::-
1]context = {
'form': form,
'title': meta.get('title', None),
'streams': video_audio_streams,
'description':
meta.get('description'),
'likes': f'{int(meta.get("like_count", 0)):,}',
'dislikes': f'{int(meta.get("dislike_count", 0)):,}',
'thumb': meta.get('thumbnails')[3]['url'],
'duration': round(int(meta.get('duration', 1))/60,
2),'views': f'{int(meta.get("view_count")):,}'
}
return render(request, 'home.html',
context)except Exception as error:
return HttpResponse(error.args[0])
return render(request, 'home.html', {'form': form})
29 | P a g e
TESTING AND IMPLEMENTATION
30 | P a g e
4. TESTING AND IMPLEMENTATION
System testing is the state of implementation, which is aimed at ensuring that the System
Works accurate and efficient as expect before, live operation, commences. It certifies that the
whole set of programs hang together system testing requires a test plan, That consist f several key
activities and step for run program, string, system and user acceptance testing. the implementation
newly design package is important in adapting a successful new system
Testing is important stage in software development system test is implementation should
be as confirmation that all is correct and opportunity to show the user that the system works as
they expected it accounts the largest percentage of technical effort in software development
process
Testing phase development phase that validates the code against the functional
specification. testing is a vital the achievement the system goals the objective testing is to discover
errors, to fulfill this objective a series of test step such as the unit test , integration , validation and
system test where planned and executed.
Unit testing are called module testing. The following modules have been tested
• Link id - valid URL link.
• File Directory - valid location.
4.1 SYSTEM TESTING
UNIT TESTING
31 | P a g e
INTEGRATION TESTING
Following modules have been integrated for evaluating the efficiency of interface
• Check mode -. Changing dark mode
• User module - insert, download, clear, exit, back
The acceptance is the final stage of the user the various possibilities of the data are entered and
the result are tested.
VAILIDATION TESTING
Software validatilon is achived through a series of test that demonstrates the
conformity and requirement thus the proposed system under consideration has to be tested by
validation and found to be working satisfactorily
4.2SYSTEM IMPLEMENTATION
Implementation is the final and important phase, the most critical stage in achieving a
successful new system and giving the user confidence. That the new system will work be effective
. The system can be implemented only after through testing is done and if it found to working
according to the specification
32 | P a g e
CONCLUSION
33 | P a g e
5. CONCLUSION
The project is an attempt to develop a system that can be used computerization of activities in the
company . Since these activities are tedious process lot of effort, more care has taken for the system
development the requirements a suitable database is created maximum effort were taken to avoid
duplication in data entry and data storage various report generated by this system
The major advantage of the system is fast accurate information retrieval minimization of clerical
work, easy and efficient data storage and report generation
A features that is required for the YOUTUBE VIDEO DOWNLOADER has been finished
successfully.
34 | P a g e
6. FUTURE ENHANCEMENTS
• Technology is constantly evolving and improved
• Cross platform compatibility has to be improved
• More securing issues have to be considered.
7.BIBLIOGRAPHY
7.1 REFERENCE BOOKS
 Python crash course – by Eric Matthes
 Fluent python – by Lynn Beighley & Michael Morrison
 Python Guide – by Vikram Vaswani
 Effective python – by Joel Murach & Ray Harris
 Python programming A Step-by-Step Guide to Creating Dynamic
Websites – by Robin Nixon
7.2 WEBSITE REFERENCE
7.2.1.1 https://www.tutorialspoint.com
7.2.1.2 https://www.w3schools.coM
7.2.1.3 https://www.youtube.com
7.2.1.4 www.visuastudio.com
35 | P a g e
Reference
Acharya, Kamal. "STUDENT INFORMATION MANAGEMENT
SYSTEM." Authorea Preprints (2023).
Acharya, Kamal. "Library Management System." Available at SSRN4807104 (2019).
ACHARYA, KAMAL, et al. "LIBRARY MANAGEMENT SYSTEM." (2019).
Acharya, Kamal. "Online bus reservation system project report." Authorea
Preprints (2024).
Acharya, Kamal. "Online bus reservation system project report." (2024).
Acharya, Kamal. “Online Bus Reservation System.” SSRN ElectroNIC ASIA
Journal (2024): n. pag.
Acharya, Kamal. “Student Information Management System Project.” SSRN
ElectroNIC ASIA Journal (2024): n. pag.
Acharya, Kamal. “ATTENDANCE MANAGEMENT SYSTEM.” International
Research Journal of Modernization in Engineering Technology and
Science (2023): n. pag.
Acharya, Kamal. “College Information Management System.” SSRN ElectroNIC
ASIA Journal (2024): n. pag.
Acharya, Kamal, Attendance Management System Project (April 28, 2024).
Available at
SSRN: https://ssrn.com/abstract=4810251 or http://dx.doi.org/10.2139/ssrn.4810251
Acharya, Kamal, Online Food Order System (May 2, 2024). Available at
SSRN: https://ssrn.com/abstract=4814732 or http://dx.doi.org/10.2139/ssrn.4814732
Acharya, Kamal, University management system project. (May 1, 2024). Availableat
SSRN: https://ssrn.com/abstract=4814103 or http://dx.doi.org/10.2139/ssrn.4814103
Acharya, Kamal, Online banking management system. (May 1, 2024). Available at
SSRN: https://ssrn.com/abstract=4813597 or http://dx.doi.org/10.2139/ssrn.4813597
Acharya, Kamal, Online Job Portal Management System (May 5, 2024). Available at
SSRN: https://ssrn.com/abstract=4817534 or http://dx.doi.org/10.2139/ssrn.4817534
Acharya, Kamal, Employee leave management system. (May 7, 2024). Available
at SSRN: https://ssrn.com/abstract=4819626 or http://dx.doi.org/10.2139/ssrn.4819626
Acharya, Kamal, Online electricity billing project report. (May 7, 2024). Available at
SSRN: https://ssrn.com/abstract=4819630 or http://dx.doi.org/10.2139/ssrn.4819630
Acharya, Kamal, POLICY MANAGEMENT SYSTEM PROJECT REPORT. (December 10, 2023). Available at
SSRN: https://ssrn.com/abstract=4831694 or http://dx.doi.org/10.2139/ssrn.4831694
Acharya, Kamal, Online job placement system project report. (January 10, 2023). Available at
36 | P a g e
SSRN: https://ssrn.com/abstract=4831638 or http://dx.doi.org/10.2139/ssrn.4831638
Acharya, Kamal, Software testing for project report. (May 16, 2023). Available at
SSRN: https://ssrn.com/abstract=4831028 or http://dx.doi.org/10.2139/ssrn.4831028
Acharya, Kamal, ONLINE CRIME REPORTING SYSTEM PROJECT. (August 10, 2022). Available at
SSRN: https://ssrn.com/abstract=4831015 or http://dx.doi.org/10.2139/ssrn.4831015
Acharya, Kamal, Burber ordering system project report. (October 10, 2022). Available at
SSRN: https://ssrn.com/abstract=4832704 or http://dx.doi.org/10.2139/ssrn.4832704
Acharya, Kamal, Teachers Record Management System Project Report (December 10, 2023). Available at
SSRN: https://ssrn.com/abstract=4833821 or http://dx.doi.org/10.2139/ssrn.4833821
Acharya, Kamal, Dairy Management System Project Report (December 20, 2020). Available at
SSRN: https://ssrn.com/abstract=4835231 or http://dx.doi.org/10.2139/ssrn.4835231
Acharya, Kamal, Electrical Shop Management System Project (December 10, 2019). Available at
SSRN: https://ssrn.com/abstract=4835238 or http://dx.doi.org/10.2139/ssrn.4835238
Acharya, Kamal, Online book store management system project report. (Febuary 10, 2020). Available at
SSRN: https://ssrn.com/abstract=4835277 or http://dx.doi.org/10.2139/ssrn.4835277
Acharya, Kamal, Paint shop management system project report. (January 10, 2019). Available at
SSRN: https://ssrn.com/abstract=4835441 or http://dx.doi.org/10.2139/ssrn.4835441
Acharya, Kamal, Supermarket billing system project report. (August 10, 2021). Available at
SSRN: https://ssrn.com/abstract=4835474 or http://dx.doi.org/10.2139/ssrn.4835474
Acharya, Kamal, Online texi booking system project report. (March 10, 2022). Available at
SSRN: https://ssrn.com/abstract=4837729 or http://dx.doi.org/10.2139/ssrn.4837729
Acharya, Kamal, Online car servicing system project report. (March 10, 2023). Available at
SSRN: https://ssrn.com/abstract=4837832 or http://dx.doi.org/10.2139/ssrn.4837832
Acharya, Kamal, School management system project report. (July 10, 2021). Available at
SSRN: https://ssrn.com/abstract=4837837 or http://dx.doi.org/10.2139/ssrn.4837837
Acharya, Kamal, Furniture Showroom Management System Project Report (March 21, 2021). Available at
SSRN: https://ssrn.com/abstract=4839422 or http://dx.doi.org/10.2139/ssrn.4839422
Acharya, Kamal, Online Vehicle Rental System Project Report (March 21, 2019). Available at
SSRN: https://ssrn.com/abstract=4839429 or http://dx.doi.org/10.2139/ssrn.4839429
Acharya, Kamal, Fruit Shop Management System Project Report (August 10, 2023). Available at
SSRN: https://ssrn.com/abstract=4841048 or http://dx.doi.org/10.2139/ssrn.4841048
Acharya, Kamal, Hall Booking Management System Project Report (December 21, 2023). Available at
SSRN: https://ssrn.com/abstract=4841055 or http://dx.doi.org/10.2139/ssrn.4841055
Acharya, Kamal, Lundry Management System Project Report (October 21, 2023). Available at
SSRN: https://ssrn.com/abstract=4841059 or http://dx.doi.org/10.2139/ssrn.4841059
Acharya, Kamal, A CASE STUDY OF CINEMA MANAGEMENT SYSTEM PROJECT (September 25, 2023).
Available at SSRN: https://ssrn.com/abstract=4841209 or http://dx.doi.org/10.2139/ssrn.4841209
Acharya, Kamal, A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT (May 25, 2024).
Available at SSRN: https://ssrn.com/abstract=4841210 or http://dx.doi.org/10.2139/ssrn.4841210
Acharya, Kamal, ONLINE DATING MANAGEMENT SYSTEM PROJECT REPORT. (April 25, 2023). Available
at SSRN: https://ssrn.com/abstract=4842066 or http://dx.doi.org/10.2139/ssrn.4842066
37 | P a g e
Acharya, Kamal, ONLINE RESUME BUILDER MANAGEMENT SYSTEM PROJECT REPORT. (April 25,
2021). Available at SSRN: https://ssrn.com/abstract=4842071 or http://dx.doi.org/10.2139/ssrn.4842071
Acharya, Kamal, TOLL TEX MANAGEMENT SYSTEM PROJECT REPORT (August 21, 2023). Available at
SSRN: https://ssrn.com/abstract=4842082 or http://dx.doi.org/10.2139/ssrn.4842082
Acharya, Kamal, Chat Application Through Client Server Management System Project Report (June 25, 2023).
Available at SSRN: https://ssrn.com/abstract=4842761 or http://dx.doi.org/10.2139/ssrn.4842761
Acharya, Kamal, Web Chatting Application Management System Project Report (April 25, 2022). Available at
SSRN: https://ssrn.com/abstract=4842771 or http://dx.doi.org/10.2139/ssrn.4842771
Acharya, Kamal, Automobile management system project report (May 25, 2022). Available at
SSRN: https://ssrn.com/abstract=4846917 or http://dx.doi.org/10.2139/ssrn.4846917
Acharya, Kamal, College bus management system project report (April 25, 2023). Available at
SSRN: https://ssrn.com/abstract=4846920 or http://dx.doi.org/10.2139/ssrn.4846920
Acharya, Kamal, Courier management system project report (May 25, 2023). Available at
SSRN: https://ssrn.com/abstract=4846922 or http://dx.doi.org/10.2139/ssrn.4846922
Acharya, Kamal, Event management system project report (April 25, 2021). Available at
SSRN: https://ssrn.com/abstract=4846927 or http://dx.doi.org/10.2139/ssrn.4846927
Acharya, Kamal, Library management system project report II (May 25, 2020). Available at
SSRN: https://ssrn.com/abstract=4848857 or http://dx.doi.org/10.2139/ssrn.4848857

More Related Content

PPTX
Presentasi memperingati 1 muharram 1445 H .pptx
PPT
Introduction to Agile Software Development & Python
PDF
Agile Languages for Rapid Prototyping
PDF
Online airline reservation system project report.pdf
DOC
Database project
PDF
FILE SPLITTER AND JOINER
PPTX
Unit 2 computer software
PDF
online news portal system
Presentasi memperingati 1 muharram 1445 H .pptx
Introduction to Agile Software Development & Python
Agile Languages for Rapid Prototyping
Online airline reservation system project report.pdf
Database project
FILE SPLITTER AND JOINER
Unit 2 computer software
online news portal system

Similar to Youtube video download using python project report.pdf (20)

PDF
Graphical Password Authenticationimp.docx2
PPT
Architectural Design.pptArchitectural Design.ppt
PPT
Chapter 6 - Architectural Design.pptbbbb
PPTX
Python programming
PPT
Year13_SystemModelsmypresentationTechnology.ppt
PPT
Master Python Basics Easily – From Zero to Real-World Applications for UG Stu...
PPT
Cmpe202 01 Research
PDF
ghgh.pdf travel portal for flights booking right
PDF
travel portal for flights booking trave
PDF
travel portal career flights booking site
PDF
travel portal for flights bookingn sbite
PDF
project report on for travel portal for flights booking site
PPTX
gbsgtgtdgtgttgtgtgtdgtdgsdgdtgdgdgdgPresentation4.pptx
PPTX
Mba i-ifm-u-2-computer software
PPT
Unit 1_Final.pptsasdhnasoidhasoinssssssssssssssssssssssssssssssss
PPT
Unit 1_Final (2).pptsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
PPTX
03 analysis of_requirementsspecification
PDF
Designing Object Oriented Software - lecture slides 2013
PPT
software development and programming languages
PPTX
Python
Graphical Password Authenticationimp.docx2
Architectural Design.pptArchitectural Design.ppt
Chapter 6 - Architectural Design.pptbbbb
Python programming
Year13_SystemModelsmypresentationTechnology.ppt
Master Python Basics Easily – From Zero to Real-World Applications for UG Stu...
Cmpe202 01 Research
ghgh.pdf travel portal for flights booking right
travel portal for flights booking trave
travel portal career flights booking site
travel portal for flights bookingn sbite
project report on for travel portal for flights booking site
gbsgtgtdgtgttgtgtgtdgtdgsdgdtgdgdgdgPresentation4.pptx
Mba i-ifm-u-2-computer software
Unit 1_Final.pptsasdhnasoidhasoinssssssssssssssssssssssssssssssss
Unit 1_Final (2).pptsaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
03 analysis of_requirementsspecification
Designing Object Oriented Software - lecture slides 2013
software development and programming languages
Python
Ad

More from Kamal Acharya (20)

PDF
Accident detection management system project report II.pdf
PDF
A Case Study of Social Media and Its Perceived Effects to Students in Academ...
PDF
computerized enrollment system project report.pdf
PDF
asset tracking system project report.pdf
PDF
Case studies of common csharp project report.pdf
PDF
Asp.net web application framework project.pdf
PDF
history of computers it is important to study how computers evolved through t...
PDF
Integration of Sensor Network to Internet of Things (IoT).pdf
PDF
how google search works submit an individual url to google.pdf
PDF
Wireless charging in mobile phones management system.pdf
PDF
Web development system project report.pdf
PDF
Advanced hospital management system project report.pdf
PDF
Computer graphics system project report..pdf
PDF
Human age and gender prediction management system project report.pdf
PDF
Tourism management system project report.pdf
PDF
Greenscreen background remover using CV system.pdf
PDF
online musical instrumental store management system project report.pdf
PDF
Bug tracker management system project report.pdf
PDF
Tollgate management system project report..pdf
PDF
leave management system project report.pdf
Accident detection management system project report II.pdf
A Case Study of Social Media and Its Perceived Effects to Students in Academ...
computerized enrollment system project report.pdf
asset tracking system project report.pdf
Case studies of common csharp project report.pdf
Asp.net web application framework project.pdf
history of computers it is important to study how computers evolved through t...
Integration of Sensor Network to Internet of Things (IoT).pdf
how google search works submit an individual url to google.pdf
Wireless charging in mobile phones management system.pdf
Web development system project report.pdf
Advanced hospital management system project report.pdf
Computer graphics system project report..pdf
Human age and gender prediction management system project report.pdf
Tourism management system project report.pdf
Greenscreen background remover using CV system.pdf
online musical instrumental store management system project report.pdf
Bug tracker management system project report.pdf
Tollgate management system project report..pdf
leave management system project report.pdf
Ad

Recently uploaded (20)

PPT
introduction to datamining and warehousing
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PDF
Soil Improvement Techniques Note - Rabbi
PDF
86236642-Electric-Loco-Shed.pdf jfkduklg
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
737-MAX_SRG.pdf student reference guides
PPTX
Artificial Intelligence
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
Fundamentals of Mechanical Engineering.pptx
PPTX
communication and presentation skills 01
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
PPT on Performance Review to get promotions
PDF
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
introduction to datamining and warehousing
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
Soil Improvement Techniques Note - Rabbi
86236642-Electric-Loco-Shed.pdf jfkduklg
Fundamentals of safety and accident prevention -final (1).pptx
737-MAX_SRG.pdf student reference guides
Artificial Intelligence
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Fundamentals of Mechanical Engineering.pptx
communication and presentation skills 01
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
Categorization of Factors Affecting Classification Algorithms Selection
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPT on Performance Review to get promotions
COURSE DESCRIPTOR OF SURVEYING R24 SYLLABUS
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...

Youtube video download using python project report.pdf

  • 1. 1 | P a g e AN INTERNSHIP REPORT ON YOUTUBE VIDEO DOWNLOAD USING PYTHON PROJECT BY KAMAL ACHARYA (Tribhuvan University) Date: 2022/01/25
  • 2. 2 | P a g e INTRODUCTION
  • 3. 3 | P a g e 1.1 PROJECT DESCRIPTION: YOUTUBE VIDEO DOWNLODER ABSTRACT In order to form a clear sketch of this project, here's a brief introduction of the features and scope of YouTube Video Downloader. This project consists of three modules which are inter-linked to each other. Each of the above modules has certain specific task to perform. Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object- oriented interface to the Tk GUI toolkit. Tkinter provides various controls, such as buttons, labels and text boxes used in a GUI application. These controls are commonly called widgets.Pytube library makes the video downloading very easy. Create the object of the YouTube module by passing the link as the parameter. Then, get the appropriate extension and resolution of the video. You can set the name of the file as your convenience, in another case original name will be kept. After that, download the file using the download function which has one parameter which is the location where to download the file. Python, this task is very easy. Few lines of code will download the video from YouTube for you. Front-End: PYTHON OBJECTIVE: Back-End: PYTHON 1. YouTube downloader tools offer fast speed downloading 2. To download multiple videos or playlist 3. The majority of YouTube downloaders allow users to download the entire playlist in a single click.
  • 4. 4 | P a g e 2. SYSTEM ANALYSIS 2.1 EXISTING SYSTEM Online YouTube Video Downloaders: These are web-based tools that allow users to download YouTube videos by simply pasting the video URL into the download box. Some popular examples of online YouTube video downloaders include Y2Mate, Keep Vid , and Clip Converter. Browser Extensions: There are various browser extensions available for Google Chrome, Mozilla Firefox, and other web browsers that allow users to download YouTube videos with ease. Some popular extensions include Video Download Helper and Fastest Tube. Desktop Software: There are several desktop software options available that allow users to download YouTube videos to their computer. Some popular software include 4K Video Downloader, Free YouTube Downloader, and WinX YouTube Downloader. 2.1.1 DRAWBACKS OF EXISTING SYSTEM 1. Quality Loss. 2. Malware and Viruses. 3. Unreliable. 4. Limited Compatibility. 2.2 PROPOSED SYSTEM This may involve obtaining permission from video creators before allowing users to download their content. To ensure the best user experience, it's important to prioritize quality preservation in any proposed system. This may involve using advanced compression algorithms to minimize quality loss during the download process. Users depend on YouTube video downloaders to work consistently and reliably. Any proposed system should undergo rigorous testing to ensure that it works well across different devices and operating systems. A user-friendly interface can help ensure that users can easily navigate and use the system. This may involve designing an intuitive download process and providing clear instructions for users.
  • 5. 5 | P a g e 2.2.1 ADVANTAGES OF PROPOSED SYSTEM 1. Legality and Ethics 2. Quality preservation 3. Reliability 4. User Interface 2.3.1 SOFTWARE REQUIRMENTS: Software is a group of programs that computers need to do a particular task. Itis an essential requirement of Computer system. The Software used to develop the project is  Operating System : Windows 10  Front-End : PYTHON  Back-End : PYTHON 2.3.2 HARDWARE REQUIRMENT The Hardware of the computer consists of physical component such as Input Devices, Storage Devices, Processing & Control units and Output Devices. Computer includes external storage unit to store data in programs. The Hardware Configuration involved in this project.  Platform : Windows10  Processor : AMD PRO A4-350B R4, 5 COMPUTE CORES2C + 3G  CPU Speed : 2.50 GHz  RAM : 4 GB 2.3 . SYSTEM REQUIREMENTAND SPECIFICATION
  • 6. 6 | P a g e  Hard Disk : 210 GB
  • 7. 7 | P a g e 2.3.3 SOFTWARE DESCRIPTION Python is a popular programming language. It was created by Guido van Rossum. and released in 1991.Python was designed for readability, and has some similarities to the English language with influence from mathematics. Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses. Python relies on indentation, using whitespace, to define scope; such as the scope of loops. functions and classes. Other programming languages often use curly-brackets for this purpose.  Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).  Python has a simple syntax similar to the English language.  Python has syntax that allows developers to write programs with fewer lines than some other programming languages.  Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means thatprototyping can be very quick.  Python can be treated in a procedural way, an object- oriented way or a functional way. FEATURES OF PYTHON: Easy to Learn and Use: Python has a simple syntax and structure that makes it easy to learn and use, even for beginners. Interpreted: Python is an interpreted language, which means that it can execute code directly without the need for compilation. This makes it easier to test and debug code. Multi-Platform Support: Python code can be run on a wide range of platforms, including Windows, Linux, and macOS.
  • 8. 8 | P a g e Large Standard Library: Python comes with a large standard library that includes modules for a wide range of applications, from web development to scientific computing. Third-Party Libraries and Frameworks: Python has a large and active community of developers who contribute to open-source libraries and frameworks, making it easy to find resources and support for building and maintaining Python applications.
  • 9. 9 | P a g e SYSTEM DESIGN AND DEVELOPMENT
  • 10. 10 | P a g e 3.1 SYSTEM DESIGN AND DEVELOPMENT 3.1 DATA FLOW DIAGRAM START Get video URL Paste Video URL Extract video ID Download Fetched video END Save file to directory
  • 11. 11 | P a g e 3.2 MODULE DESCRIPTION The project having two categories there are 1. File 1. Downloader 2. Mode 3. Help 4. Exit File A file description refers to a summary or a detailed explanation of the content, purpose, and structure of a file. It is often used to provide context and help users understand the contents Downloader A video downloader is a type of downloader software that is specifically designed to download video content from websites Mode Light mode and dark mode are two different display modes available in software applications and devices that allow users to switch between light and dark color schemes. Help Help is a type of assistance or support provided to individuals who are in need of guidance, information, or instruction. Exit Exit is a command or action that allows a user to close or terminate a program, application, or system.
  • 12. 12 | P a g e 3.3 SYSTEM DESIGN The most creative and challenging face of the system development is System Design. It provides the understanding and procedural details necessary for the logical and physical stages of development. In designing a new system, the system analyst must have a clear understanding of the objectives, which the design is aiming to fulfill. The first step is to determine how the output is to be produced and in what format. Second, input data and master files have to be designed to meet the requirements ofthe proposed output. The operational phases are handled through program construction and testing. 3.4 Input Design In this software, importance is given to develop Graphical User Interface (GUI), which is an important factor in developing efficient and user friendly software. For inputting user data, attractive forms are designed. User can also select the desired options from the menu, which provides all possible facilities. Also the important input format is designed in such a way that accidental errors are avoided. The user has to input only just the minimum data required, which also helps in avoiding the errors that the users may make. Accurate designing of the input format is very important in developing efficient software. The goal of input design is to make entry as easy, logical and free from errors. 3.5 Output Design Definition In the output design, the emphasis is on producing a hard copy of the format. Two of the most output media today are printers and the screen. Most users now access their reports from either a hard copy or screen display. Computer’s output is the most important and direct source of information to the user, efficient, logical, output design should improve the systems relations with the user and help in decision-making.
  • 13. 13 | P a g e SAMPLE OUTPUT: FILES: ABOUT:
  • 14. 14 | P a g e Light mode: YouTube video link:
  • 15. 15 | P a g e Contact us: Gathering URL:
  • 16. 16 | P a g e File Directory: Video Fetching:
  • 17. 17 | P a g e Path setting: Downloader:
  • 18. 18 | P a g e Exit:
  • 19. 19 | P a g e 3.6 Code Design Asgi.py """ ASGI config for djangoProject project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings') application = get_asgi_application() settug.py """ Django settings for djangoProject project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """
  • 20. 20 | P a g e from pathlib import Pathimport os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path( file ).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '#r*6fh@d&_-_$=xai$jky0h^n(+y4s5jiu-4&w^1dkz=ex(7g2' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = ['*'] # Application definition INSTALLED_APPS = [ 'ytdl', 'crispy_forms', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes' ,'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ]
  • 21. 21 | P a g e MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
  • 22. 22 | P a g e 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'djangoProject.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [BASE_DIR / 'templates'] , 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'djangoProject.wsgi.application' # Database # https://docs.djangoproject.com/en/3.1/ref/settings/#databases DATABASES = { 'default':
  • 23. 23 | P a g e 'ENGINE': 'django.db.backends.sqlite3','NAME': 'test', } } # Password validation # https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True
  • 24. 24 | P a g e USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static_serve', 'static_root') MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'static_serve', 'media_root') STATICFILES_DIRS = [os.path.join(BASE_DIR, "static_files")] STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' CRISPY_TEMPLATE_PACK = 'bootstrap4' # CORS_REPLACE_HTTPS_REFERER = False # HOST_SCHEME = "http://" # SECURE_PROXY_SSL_HEADER = None# SECURE_SSL_REDIRECT = False # SESSION_COOKIE_SECURE = False# CSRF_COOKIE_SECURE = False # SECURE_HSTS_SECONDS = None # SECURE_HSTS_INCLUDE_SUBDOMAINS = False# SECURE_FRAME_DENY = False
  • 25. 25 | P a g e URL.py """djangoProject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see:https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))""" from django.contrib import admin from django.urls import path from ytdl import views urlpatterns = [ path('', views.download_video), ] Wagi.py """ WSGI config for djangoProject project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """
  • 26. 26 | P a g e import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings') application = get_wsgi_application() Manage.py #!/usr/bin/env python """Django's command-line utility for administrative tasks."""import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoProject.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv) if name == ' main ': main()
  • 27. 27 | P a g e VIEW.PY from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.shortcuts import render import youtube_dl from .forms import DownloadForm import re def download_video(request): global context form = DownloadForm(request.POST or None) if form.is_valid(): video_url = form.cleaned_data.get("url") regex = r'^(http(s)?://)?((w){3}.)?youtu(be|.be)?(.com)?/.+'if not re.match(regex,video_url): return HttpResponse('Enter correct url.') ydl_opts = {} try: with youtube_dl.YoutubeDL(ydl_opts) as ydl: meta = ydl.extract_info( video_url, download=False) video_audio_streams = [] for m in meta['formats']: file_size = m['filesize'] if file_size is not None: file_size = f'{round(int(file_size) / 1000000,2)} mb' resolution = 'Audio'
  • 28. 28 | P a g e if m['height'] is not None: resolution = f"{m['height']}x{m['width']}" video_audio_streams.append({ 'resolution': resolution,'extension': m['ext'], 'file_size': file_size, 'video_url': m['url'] }) video_audio_streams = video_audio_streams[::- 1]context = { 'form': form, 'title': meta.get('title', None), 'streams': video_audio_streams, 'description': meta.get('description'), 'likes': f'{int(meta.get("like_count", 0)):,}', 'dislikes': f'{int(meta.get("dislike_count", 0)):,}', 'thumb': meta.get('thumbnails')[3]['url'], 'duration': round(int(meta.get('duration', 1))/60, 2),'views': f'{int(meta.get("view_count")):,}' } return render(request, 'home.html', context)except Exception as error: return HttpResponse(error.args[0]) return render(request, 'home.html', {'form': form})
  • 29. 29 | P a g e TESTING AND IMPLEMENTATION
  • 30. 30 | P a g e 4. TESTING AND IMPLEMENTATION System testing is the state of implementation, which is aimed at ensuring that the System Works accurate and efficient as expect before, live operation, commences. It certifies that the whole set of programs hang together system testing requires a test plan, That consist f several key activities and step for run program, string, system and user acceptance testing. the implementation newly design package is important in adapting a successful new system Testing is important stage in software development system test is implementation should be as confirmation that all is correct and opportunity to show the user that the system works as they expected it accounts the largest percentage of technical effort in software development process Testing phase development phase that validates the code against the functional specification. testing is a vital the achievement the system goals the objective testing is to discover errors, to fulfill this objective a series of test step such as the unit test , integration , validation and system test where planned and executed. Unit testing are called module testing. The following modules have been tested • Link id - valid URL link. • File Directory - valid location. 4.1 SYSTEM TESTING UNIT TESTING
  • 31. 31 | P a g e INTEGRATION TESTING Following modules have been integrated for evaluating the efficiency of interface • Check mode -. Changing dark mode • User module - insert, download, clear, exit, back The acceptance is the final stage of the user the various possibilities of the data are entered and the result are tested. VAILIDATION TESTING Software validatilon is achived through a series of test that demonstrates the conformity and requirement thus the proposed system under consideration has to be tested by validation and found to be working satisfactorily 4.2SYSTEM IMPLEMENTATION Implementation is the final and important phase, the most critical stage in achieving a successful new system and giving the user confidence. That the new system will work be effective . The system can be implemented only after through testing is done and if it found to working according to the specification
  • 32. 32 | P a g e CONCLUSION
  • 33. 33 | P a g e 5. CONCLUSION The project is an attempt to develop a system that can be used computerization of activities in the company . Since these activities are tedious process lot of effort, more care has taken for the system development the requirements a suitable database is created maximum effort were taken to avoid duplication in data entry and data storage various report generated by this system The major advantage of the system is fast accurate information retrieval minimization of clerical work, easy and efficient data storage and report generation A features that is required for the YOUTUBE VIDEO DOWNLOADER has been finished successfully.
  • 34. 34 | P a g e 6. FUTURE ENHANCEMENTS • Technology is constantly evolving and improved • Cross platform compatibility has to be improved • More securing issues have to be considered. 7.BIBLIOGRAPHY 7.1 REFERENCE BOOKS  Python crash course – by Eric Matthes  Fluent python – by Lynn Beighley & Michael Morrison  Python Guide – by Vikram Vaswani  Effective python – by Joel Murach & Ray Harris  Python programming A Step-by-Step Guide to Creating Dynamic Websites – by Robin Nixon 7.2 WEBSITE REFERENCE 7.2.1.1 https://www.tutorialspoint.com 7.2.1.2 https://www.w3schools.coM 7.2.1.3 https://www.youtube.com 7.2.1.4 www.visuastudio.com
  • 35. 35 | P a g e Reference Acharya, Kamal. "STUDENT INFORMATION MANAGEMENT SYSTEM." Authorea Preprints (2023). Acharya, Kamal. "Library Management System." Available at SSRN4807104 (2019). ACHARYA, KAMAL, et al. "LIBRARY MANAGEMENT SYSTEM." (2019). Acharya, Kamal. "Online bus reservation system project report." Authorea Preprints (2024). Acharya, Kamal. "Online bus reservation system project report." (2024). Acharya, Kamal. “Online Bus Reservation System.” SSRN ElectroNIC ASIA Journal (2024): n. pag. Acharya, Kamal. “Student Information Management System Project.” SSRN ElectroNIC ASIA Journal (2024): n. pag. Acharya, Kamal. “ATTENDANCE MANAGEMENT SYSTEM.” International Research Journal of Modernization in Engineering Technology and Science (2023): n. pag. Acharya, Kamal. “College Information Management System.” SSRN ElectroNIC ASIA Journal (2024): n. pag. Acharya, Kamal, Attendance Management System Project (April 28, 2024). Available at SSRN: https://ssrn.com/abstract=4810251 or http://dx.doi.org/10.2139/ssrn.4810251 Acharya, Kamal, Online Food Order System (May 2, 2024). Available at SSRN: https://ssrn.com/abstract=4814732 or http://dx.doi.org/10.2139/ssrn.4814732 Acharya, Kamal, University management system project. (May 1, 2024). Availableat SSRN: https://ssrn.com/abstract=4814103 or http://dx.doi.org/10.2139/ssrn.4814103 Acharya, Kamal, Online banking management system. (May 1, 2024). Available at SSRN: https://ssrn.com/abstract=4813597 or http://dx.doi.org/10.2139/ssrn.4813597 Acharya, Kamal, Online Job Portal Management System (May 5, 2024). Available at SSRN: https://ssrn.com/abstract=4817534 or http://dx.doi.org/10.2139/ssrn.4817534 Acharya, Kamal, Employee leave management system. (May 7, 2024). Available at SSRN: https://ssrn.com/abstract=4819626 or http://dx.doi.org/10.2139/ssrn.4819626 Acharya, Kamal, Online electricity billing project report. (May 7, 2024). Available at SSRN: https://ssrn.com/abstract=4819630 or http://dx.doi.org/10.2139/ssrn.4819630 Acharya, Kamal, POLICY MANAGEMENT SYSTEM PROJECT REPORT. (December 10, 2023). Available at SSRN: https://ssrn.com/abstract=4831694 or http://dx.doi.org/10.2139/ssrn.4831694 Acharya, Kamal, Online job placement system project report. (January 10, 2023). Available at
  • 36. 36 | P a g e SSRN: https://ssrn.com/abstract=4831638 or http://dx.doi.org/10.2139/ssrn.4831638 Acharya, Kamal, Software testing for project report. (May 16, 2023). Available at SSRN: https://ssrn.com/abstract=4831028 or http://dx.doi.org/10.2139/ssrn.4831028 Acharya, Kamal, ONLINE CRIME REPORTING SYSTEM PROJECT. (August 10, 2022). Available at SSRN: https://ssrn.com/abstract=4831015 or http://dx.doi.org/10.2139/ssrn.4831015 Acharya, Kamal, Burber ordering system project report. (October 10, 2022). Available at SSRN: https://ssrn.com/abstract=4832704 or http://dx.doi.org/10.2139/ssrn.4832704 Acharya, Kamal, Teachers Record Management System Project Report (December 10, 2023). Available at SSRN: https://ssrn.com/abstract=4833821 or http://dx.doi.org/10.2139/ssrn.4833821 Acharya, Kamal, Dairy Management System Project Report (December 20, 2020). Available at SSRN: https://ssrn.com/abstract=4835231 or http://dx.doi.org/10.2139/ssrn.4835231 Acharya, Kamal, Electrical Shop Management System Project (December 10, 2019). Available at SSRN: https://ssrn.com/abstract=4835238 or http://dx.doi.org/10.2139/ssrn.4835238 Acharya, Kamal, Online book store management system project report. (Febuary 10, 2020). Available at SSRN: https://ssrn.com/abstract=4835277 or http://dx.doi.org/10.2139/ssrn.4835277 Acharya, Kamal, Paint shop management system project report. (January 10, 2019). Available at SSRN: https://ssrn.com/abstract=4835441 or http://dx.doi.org/10.2139/ssrn.4835441 Acharya, Kamal, Supermarket billing system project report. (August 10, 2021). Available at SSRN: https://ssrn.com/abstract=4835474 or http://dx.doi.org/10.2139/ssrn.4835474 Acharya, Kamal, Online texi booking system project report. (March 10, 2022). Available at SSRN: https://ssrn.com/abstract=4837729 or http://dx.doi.org/10.2139/ssrn.4837729 Acharya, Kamal, Online car servicing system project report. (March 10, 2023). Available at SSRN: https://ssrn.com/abstract=4837832 or http://dx.doi.org/10.2139/ssrn.4837832 Acharya, Kamal, School management system project report. (July 10, 2021). Available at SSRN: https://ssrn.com/abstract=4837837 or http://dx.doi.org/10.2139/ssrn.4837837 Acharya, Kamal, Furniture Showroom Management System Project Report (March 21, 2021). Available at SSRN: https://ssrn.com/abstract=4839422 or http://dx.doi.org/10.2139/ssrn.4839422 Acharya, Kamal, Online Vehicle Rental System Project Report (March 21, 2019). Available at SSRN: https://ssrn.com/abstract=4839429 or http://dx.doi.org/10.2139/ssrn.4839429 Acharya, Kamal, Fruit Shop Management System Project Report (August 10, 2023). Available at SSRN: https://ssrn.com/abstract=4841048 or http://dx.doi.org/10.2139/ssrn.4841048 Acharya, Kamal, Hall Booking Management System Project Report (December 21, 2023). Available at SSRN: https://ssrn.com/abstract=4841055 or http://dx.doi.org/10.2139/ssrn.4841055 Acharya, Kamal, Lundry Management System Project Report (October 21, 2023). Available at SSRN: https://ssrn.com/abstract=4841059 or http://dx.doi.org/10.2139/ssrn.4841059 Acharya, Kamal, A CASE STUDY OF CINEMA MANAGEMENT SYSTEM PROJECT (September 25, 2023). Available at SSRN: https://ssrn.com/abstract=4841209 or http://dx.doi.org/10.2139/ssrn.4841209 Acharya, Kamal, A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT (May 25, 2024). Available at SSRN: https://ssrn.com/abstract=4841210 or http://dx.doi.org/10.2139/ssrn.4841210 Acharya, Kamal, ONLINE DATING MANAGEMENT SYSTEM PROJECT REPORT. (April 25, 2023). Available at SSRN: https://ssrn.com/abstract=4842066 or http://dx.doi.org/10.2139/ssrn.4842066
  • 37. 37 | P a g e Acharya, Kamal, ONLINE RESUME BUILDER MANAGEMENT SYSTEM PROJECT REPORT. (April 25, 2021). Available at SSRN: https://ssrn.com/abstract=4842071 or http://dx.doi.org/10.2139/ssrn.4842071 Acharya, Kamal, TOLL TEX MANAGEMENT SYSTEM PROJECT REPORT (August 21, 2023). Available at SSRN: https://ssrn.com/abstract=4842082 or http://dx.doi.org/10.2139/ssrn.4842082 Acharya, Kamal, Chat Application Through Client Server Management System Project Report (June 25, 2023). Available at SSRN: https://ssrn.com/abstract=4842761 or http://dx.doi.org/10.2139/ssrn.4842761 Acharya, Kamal, Web Chatting Application Management System Project Report (April 25, 2022). Available at SSRN: https://ssrn.com/abstract=4842771 or http://dx.doi.org/10.2139/ssrn.4842771 Acharya, Kamal, Automobile management system project report (May 25, 2022). Available at SSRN: https://ssrn.com/abstract=4846917 or http://dx.doi.org/10.2139/ssrn.4846917 Acharya, Kamal, College bus management system project report (April 25, 2023). Available at SSRN: https://ssrn.com/abstract=4846920 or http://dx.doi.org/10.2139/ssrn.4846920 Acharya, Kamal, Courier management system project report (May 25, 2023). Available at SSRN: https://ssrn.com/abstract=4846922 or http://dx.doi.org/10.2139/ssrn.4846922 Acharya, Kamal, Event management system project report (April 25, 2021). Available at SSRN: https://ssrn.com/abstract=4846927 or http://dx.doi.org/10.2139/ssrn.4846927 Acharya, Kamal, Library management system project report II (May 25, 2020). Available at SSRN: https://ssrn.com/abstract=4848857 or http://dx.doi.org/10.2139/ssrn.4848857