Gilvas / Youtube-Scraper

Web scraping for downloading YouTube videos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Youtube-Scraper

Web scraping for downloading YouTube videos

Description

With this program, you can download that video from YouTube to watch it later.

Installation

Make sure you have installed Python 3 in your machine and import the pytube module, the latter will be necessary to import the YouTube video data for scraping. The pytube module can be installed as follows:

  • open the Command Prompt (cmd)
  • type 'pip install pytube'
  • check if the pyperclip module has been successfully installed

If you have problems installing the pytube module, please visit the link to pytube.

Usage

  1. Open the YouTube video you wish to download.
  2. Copy the URL of that video.
  3. Run the program, via .py, IDLE or cmd.
  4. If the link is incorrect, you will see an exception being raised.
  5. Follow the instructions on your screen.
  6. The code is not case sensitive, which means you can enter: 'Yes, YES, yes' to continue the download.
  7. You can also type 'y' and 'Y' to continue the download of the video.
  8. The video will be downloaded onto the same directory as this program is found.

Note

I wrote the code in Windows. Therefore, the shebang line (first line of the code) tells my computer run Python 3 in my operating system Windows. If you use another OS, Linux or OS X, please change that first line to the one which fits you. Please visit Automate the Boring Stuff with Python Programming for further explanation.

About

Web scraping for downloading YouTube videos

License:MIT License


Languages

Language:Python 100.0%