An open API service indexing awesome lists of open source software.

https://github.com/srimur/youtubeplaylistscraper

A simple CLI tool to extract and save video details from YouTube playlists in Notion Checklist or text or JSON format. Perfect for quick and easy playlist data management.
https://github.com/srimur/youtubeplaylistscraper

mini-project mini-tools notion scraper youtube-playlist

Last synced: 3 months ago
JSON representation

A simple CLI tool to extract and save video details from YouTube playlists in Notion Checklist or text or JSON format. Perfect for quick and easy playlist data management.

Awesome Lists containing this project

README

          

# ytscrapper

A simple, robust CLI tool to scrape video details from YouTube playlists—no API key required.
Supports Notion-compatible markdown, JSON, CSV, and text exports.
Automatically falls back to a secondary scraping method if needed.

## Features

- Extract video titles, URLs, channels, durations from any YouTube playlist
- Output formats: JSON, CSV, Markdown (Notion checklist), text table
- Copy Notion markdown directly to clipboard (`-c` flag)
- No API key or authentication needed
- Cross-platform, Python 3.7+

## Installation

pip install -e .

## Usage

ytscrapper PLAYLIST_URL [OPTIONS]

### Example

ytscrapper "https://www.youtube.com/playlist?list=YOUR_PLAYLIST_ID" -f notion -c -n my_videos

### Options

- `-f, --format [json|csv|notion|text|all]` Output format (default: all)
- `-n, --name TEXT` Base name for output files
- `-e, --export PATH` Export directory for saved files
- `-c, --copy` Copy Notion markdown to clipboard
- `--test` Test both scraping methods
- `--verbose` Enable detailed output

## Development

- Python 3.7+
- See `requirements.txt` for dependencies.

## License

MIT License