Skip to main content

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

dacquaviva_youtube_collector-0.7.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dacquaviva_youtube_collector-0.7.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file dacquaviva_youtube_collector-0.7.0.tar.gz.

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.7.0.tar.gz
Algorithm Hash digest
SHA256 a140401f35e6b746248c862fb10aec813ea1d5c52b428e385136d4cf4304aa5b
MD5 effc03c23f2b6136c314c278577ca4fa
BLAKE2b-256 c0d4574dee2e51d6c78066083ab69f3771a2c1f472b052f6d1f4f0bd85f46e41

See more details on using hashes here.

File details

Details for the file dacquaviva_youtube_collector-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a015d484f0d918c8546d38e3a073ccbcc8e89f3d2addc253762aa4d0ff2f0ed
MD5 52226a9f3c0d2f162fdf6bab4f07bfab
BLAKE2b-256 c0a8528010f6eada2551f7d4e4a2806ae97a23830c49ea6b8f9566bd1f4f0d40

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page