Skip to content

Python program to scrape details about youtube subscriptions and watch-later list of a user

Notifications You must be signed in to change notification settings

adhirajpandey/YT-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YT-scraper

Description

This Script allows you to generate structured txt and csv file of Youtube Subscriptions as well as Youtube Watch Later Playlist videos of a user.

This Script uses saved html file of your subscriptions/watch-later page and BeautifulSoup to parse it structurally to implement the objective.

Requirements

  • python3
  • pip3
  • BeautifulSoup
  • csv

Usage

  1. Go to https://www.youtube.com/feed/channels OR https://www.youtube.com/playlist?list=WL(make sure you are logged in) and scroll to bottom of the page.
  2. Save html of the page by right-clicking in browser window and select save as to download it in your computer.
  3. Clone this project git clone https://github.com/adhirajpandey/YT-scraper and cd into it cd YT-subscriptions-scraper
  4. Install Requirement pip install bs4
  5. Modify subs.py or `watch-later.py to modify the path of your saved html file of your page.
  6. Run Script
  7. Check directory for the output.
  8. Edit clear-playlist.py as per your need and run it to clear your playlists.

Sample

  1. Download html htmlpagedwnld

  2. Clone clone

  3. Install Requirement installreq

  4. Edit main.py editmain

  5. Execute main.py execute

  6. Generated Files filesgen

  7. Text File Sample txtsample

  8. CSV File Sample csvsample

About

Python program to scrape details about youtube subscriptions and watch-later list of a user

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages