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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.5.0.tar.gz
Algorithm Hash digest
SHA256 50cc8fe94d57b2a3c9f38ed86b417458e38aab4c58682c6b6ac40e472d228445
MD5 2ac47765acf5812461597994bd143c4f
BLAKE2b-256 ec35d563d4d456fd46c33dba466fe563c10798a02accc0befd7d81e41aeaca85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5eab78014688a77c46d8d21ce590cec201fd932f90484aa58c5d32bd7db89d2
MD5 ca504978641c8543e2a76f2b69da9f1e
BLAKE2b-256 17f3e858f685ceeee9ddff76bc96b06b913bc91756aaa93bab8879de19a61d26

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