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.3.0.tar.gz (10.6 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.3.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2578856729352ec9a527a82541103f1a35554173e8c0d990f710467354491816
MD5 03cd59c45f196714ef72e3743ba6a21b
BLAKE2b-256 2ea81ff7713e94fe64a74130cc6445035d7b3c6d614db951f28735cf1cda3413

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e43e44f468188d88f912983249099b2f822ebf503039503c6ad512bfddb828e
MD5 d154ca84354122d34784bdb3e35cd49d
BLAKE2b-256 77fd8289948ffaca40fa1cff8601d0d0be7a779717e92161b1001e67ff6ce1ca

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