A Python project for scraping YouTube data using the YouTube Data API & analyzing the data. The project mainly focuses on extracting channel statistics and video details for analysis.
- Python installed
- YouTube API Key obtained
-
Clone the repository:
git clone https://github.com/faizanxmulla/python-portfolio.git cd python-portfolio
-
Install required packages:
pip install -r requirements.txt
-
Set up your Youtube API key:
- Generate your API Key here.
- Set the API Key as an environment variable:
export YT_API_KEY="your-api-key"
yt.ipynb
: Jupyter Notebook containing the main project code.requirements.txt
: List of required Python packages.
- Open the Jupyter Notebook (
yt.ipynb
) in your preferred environment. - Follow the steps outlined in the notebook to:
- Set up the YouTube API.
- Scrape channel statistics.
- Scrape video details.
- Analyze and visualize the data.