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.4.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.4.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e628aa6a1ef571d8518d1b736947164b80bf8e4e7316faa9aacc08bf89ad9924
MD5 c7a244f7f5b2c184d8268485f5106e6a
BLAKE2b-256 9e704f96d200af9e840adc29994979276e28801fe62893cfa869f3ace9d98f94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dacquaviva_youtube_collector-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4857f5c6060712765f212863ecaba1f449400246943b11b2d0b8296624170dce
MD5 48b13fec26b3ab901d9eade2b6981599
BLAKE2b-256 f484df79a8b9687cea9416b948d06e17dbb898e7ada326e3c2016af3e733a3fc

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