Skip to content

Python scripts that retrieve a specific channel's data using Youtube Data API v3 and converts into a CSV file to be used for data science or ML-related tasks.

License

Notifications You must be signed in to change notification settings

asamirr/Youtube-CSV-Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Youtube-CSV-Data

Python scripts that retrieve a specific channel's data using Youtube Data API v3 and converts into a CSV file to be used for data science or ML-related tasks.

1- Make sure all the libraries (BS4, Pandas, etc.) are installed

2- Run the vidlinks.py file in the terminal. (python vidlinks.py)

This file grabs at most 30 videos links (still figuring out how to get scrape more) and saves it in a .csv file to be used later by the videodata.py file. -A link of the channel has to be assigned to "channels". -Then, you write the name you want for the .csv file that'll be created.

3- Before running the second script, edit the DEVELOPER_KEY and type yours which could be found in the Developer Console.

4- Edit the "df" variable (LINE 87) to the same file that was generated after you ran vidlinks.py because it's what'll be read and used by the API to get the data.

5- Type a new file name (LINE 101)

6- Then, you run the videodata.py file just like before.`

About

Python scripts that retrieve a specific channel's data using Youtube Data API v3 and converts into a CSV file to be used for data science or ML-related tasks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages