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