This Script allows you to generate structured txt and csv file of Youtube Subscriptions of a user.
This Script uses saved html file of your subscriptions page and BeautifulSoup to parse it structurally to implement the objective.
- python3
- pip3
- BeautifulSoup
- Go to
https://www.youtube.com/feed/channels
(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-subscriptions-scraper
and cd into itcd YT-subscriptions-scraper
- Install Requirement
pip install bs4
- Modify
main.py
to modify the path of your saved html file of your subscriptions page. - Run Script
python main.py
orpython3 main.py
- Check
subscriptions.txt
andsubscriptions.csv
for the output.