A library for collecting video data from YouTube.
Project description
dacquaviva-youtube-collector
Python library for collecting YouTube video data and downloading thumbnails.
Installation
pip install dacquaviva-youtube-collector
Quick Start
from youtube_collector import YouTubeClient
# Initialize (uses YOUTUBE_API_KEY environment variable)
client = YouTubeClient()
# Fetch videos from 7 days ago
videos = client.fetch_videos_by_publish_date(days_ago=7)
# Download thumbnails
paths = client.download_thumbnails_bulk(videos)
# Save metadata to CSV
client.save_to_csv(videos, "dataset.csv")
API Key Setup
export YOUTUBE_API_KEY=your_api_key
Get your key at Google Cloud Console
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dacquaviva_youtube_collector-0.6.0.tar.gz.
File metadata
- Download URL: dacquaviva_youtube_collector-0.6.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34f42a60bb952186e95dd9e4813798caba4884240104912f1c03d5f296dce018
|
|
| MD5 |
5c3e443e88a06ede42e1331cdad3832b
|
|
| BLAKE2b-256 |
c5ee692509280a5ca7fa85b99ffcbd83aea69f6d93d011f4673d4d14468a75c7
|
File details
Details for the file dacquaviva_youtube_collector-0.6.0-py3-none-any.whl.
File metadata
- Download URL: dacquaviva_youtube_collector-0.6.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
778f09d34e2d9f4c7a7e038a8771ad6d8f5d8b7efb7536f55fd706c328ab5387
|
|
| MD5 |
ab6a0c50d9cff09fa00144e02fb40fb9
|
|
| BLAKE2b-256 |
bc1139bb051b6011f746a51ba15a4ad30d794cfe55268466aa933ddd7cea66b9
|