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.6.0.tar.gz (11.4 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.6.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.6.0.tar.gz
Algorithm Hash digest
SHA256 34f42a60bb952186e95dd9e4813798caba4884240104912f1c03d5f296dce018
MD5 5c3e443e88a06ede42e1331cdad3832b
BLAKE2b-256 c5ee692509280a5ca7fa85b99ffcbd83aea69f6d93d011f4673d4d14468a75c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 778f09d34e2d9f4c7a7e038a8771ad6d8f5d8b7efb7536f55fd706c328ab5387
MD5 ab6a0c50d9cff09fa00144e02fb40fb9
BLAKE2b-256 bc1139bb051b6011f746a51ba15a4ad30d794cfe55268466aa933ddd7cea66b9

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