archive-acquisition
БесплатноБез исполняемых скриптовНе проверенPatterns for acquiring content from Internet Archive and archival sources
от jmagly★ 233 звезды на GitHubОб этом скилле
Archive Acquisition Skill
Specialized patterns and techniques for acquiring media content from Internet Archive (archive.org) and other archival sources. Focuses on bulk downloads, quality selection, format filtering, and collection management.
Internet Archive Overview
Internet Archive hosts massive collections of audio, video, text, and software. Key characteristics:
- Open access: Most content freely downloadable
- Multiple formats: Same item often available in FLAC, MP3, OGG, etc.
- Collections: Items grouped by uploader, topic, or curator
- Metadata: Rich JSON metadata for every item
- API access: Full programmatic access via REST API
Discovery Patterns
Search API
Find items matching specific criteria:
# Search for items by keyword and mediatype
search_archive() {
local query="$1"
local mediatype="$2" # audio, movies, texts, etc.
local rows="${3:-100}" # Results per page
curl -s "https://archive.org/advancedsearch.php" \
-d "q=$query AND mediatype:$mediatype" \
-d "fl[]=identifier,title,creator,date,format" \
-d "rows=$rows" \
-d "output=json" \
| jq '.response.docs[]'
}
# Example: Search for Grateful Dead concerts
search_archive "grateful dead" "audio" 50
Response Format
{
"identifier": "gd1977-05-08.sbd.miller.97065.flac16",
"title": "Grateful Dead Live at Barton Hall on 1977-05-08",
"creator": "Grateful Dead",
"date": "1977-05-08",
"format": ["Flac", "VBR MP3", "Ogg Vorbis", "Metadata"]
}
Collection Browsing
List all items in a collection:
# Get items from a specific collection
get_collection_items() {
local collection="$1"
local rows="${2:-1000}"
curl -s "https://archive.org/advancedsearch.php" \
-d "q=collection:$collection" \
-d "fl[]=identifier,title,format" \
-d "rows=$rows" \
-d "output=json" \
| jq -r '.response.docs[] | .identifier'
}
# Example: Get all items from GratefulDead collection
get_collection_items "GratefulDead" 500
Advanced Query Patterns
# Find items by date range
search_by_date() {
local creator="$1"
local start_date="$2" # YYYY-MM-DD
local end_date="$3"
curl -s "https://archive.org/advancedsearch.php" \
-d "q=creator:\"$creator\" AND date:[$start_date TO $end_date]" \
-d "fl[]=identifier,title,date" \
-d "rows=100" \
-d "output=json" \
| jq '.response.docs[]'
}
# Find items with specific format available
search_by_format() {
local query="$1"
local format="$2" # FLAC, MP3, etc.
curl -s "https://archive.org/advancedsearch.php" \
-d "q=$query AND format:$format" \
-d "fl[]=identifier,title,format" \
-d "rows=100" \
-d "output=json" \
| jq '.response.docs[]'
}
# Example: Find all FLAC recordings of specific artist
search_by_format "pink floyd" "Flac"
Item Metadata Retrieval
Get Item Details
# Retrieve full metadata for an item
get_item_metadata() {
local identifier="$1"
curl -s "https://archive.org/metadata/$identifier" \
| jq '.'
}
# Extract specific metadata fields
get_item_files() {
local identifier="$1"
curl -s "https://archive.org/metadata/$identifier" \
| jq -r '.files[] | select(.format != "Metadata") | "\(.name)\t\(.format)\t\(.size)"'
}
# Example output:
# gd77-05-08d1t01.flac Flac 45123456
# gd77-05-08d1t01.mp3 VBR MP3 12345678
Filter by Format
# Get only FLAC files from an item
get_flac_files() {
local identifier="$1"
curl -s "https://archive.org/metadata/$identifier" \
| jq -r '.files[] | select(.format == "Flac") | .name'
}
# Get best quality audio files (prefer FLAC, fallback to 320K MP3)
get_best_audio_files() {
local identifier="$1"
# Try FLAC first
local flac_files=$(curl -s "https://archive.org/metadata/$identifier" \
| jq -r '.files[] | select(.format == "Flac") | .name')
if -n "$flac_files"; then
echo "$flac_files"
return 0
fi
# Fallback to highest bitrate MP3
curl -s "https://archive.org/metadata/$identifier" \
| jq -r '.files[] | select(.format == "VBR MP3" or .format == "320Kbps MP3") | .name'
}
Download Patterns
Single Item Download
# Download all files from a single item
download_item() {
local identifier="$1"
local output_dir="$2"
local format_filter="$3" # Optional: FLAC, MP3, etc.
mkdir -p "$output_dir"
# Get file list
local files
if -n "$format_filter"; then
files=$(curl -s "https://archive.org/metadata/$identifier" \
| jq -r ".files[] | select(.format == \"$format_filter\") | .name")
else
files=$(curl -s "https://archive.org/metadata/$identifier" \
| jq -r '.files[] | select(.format != "Metadata") | .name')
fi
# Download each file
while IFS= read -r file; do
echo "Downloading: $file"
wget -q --show-progress \
"https://archive.org/download/$identifier/$file" \
-P "$output_dir"
done <<< "$files"
}
# Example: Down
Установить archive-acquisition в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл archive-acquisition?
Patterns for acquiring content from Internet Archive and archival sources
Как установить скилл archive-acquisition?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл archive-acquisition запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic