anjkt / youtube-scraper

This a python program which scrapes out videos from channel using channel id. User has to get Access Key for hitting the api.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

youtube-scraper

This a python program which scrapes out videos from channel using channel id. User has to get Access Key for hitting the api.

You can use it to gather data from your desired channels and get a full list of respective videos

Complexity is n^2(n number of Channels and n number of videos)

Dependencies Used:(pip install if missing)

  1. Requests
  2. CSV
  3. JSON
  4. Pandas

How to configure

  1. Put your Access token in the variable
  2. Read a csv file with a header of column with channel_ids
  3. Replace the header name
  4. Run youtube.py
  5. After completion you can get a csv with wider format of data representation
  6. This dataset can be used for ML purposes.

About

This a python program which scrapes out videos from channel using channel id. User has to get Access Key for hitting the api.

License:MIT License


Languages

Language:Python 100.0%