{"id":"01KG8AWVSC7FY4M9EN0V2YBCC5","cid":"bafkreihufaxgr5vhfswp3fdt6pgsdoa5ejl5xr655z2ebr63xuf76uieaa","type":"intro","properties":{"description":"# Introduction\n## Overview - What this is (type, form, dates, scope)\nThis is an \"intro\" segment extracted from the [Shakespeare Complete Works Download Script](arke:01KG8AWGEP5VC33Q2EJ85FCB6J), a technical manual. It is a portion of a shell script, starting at line 1 and ending at line 32 of the source file, [download_shakespeare.sh](arke:01KG89K4MCC02B3RKGNV2XEV39). The segment was extracted on January 30, 2026. This introduction sets the stage for downloading William Shakespeare's complete works.\n\n## Context - Background and provenance from related entities\nThis introduction is part of a larger shell script designed to download public domain PDFs of Shakespeare's complete works from the Internet Archive. The script is organized by category and aims to deduplicate the downloads, preferring illustrated editions. The script is part of the [Shakespeare](arke:01KG89JREDR8WY5QQGYR5FZRDY) collection.\n\n## Contents - What it contains, key subjects and details\nThe introduction begins with a shebang line and comments describing the script's purpose. It sets the base directory and archive base URL for downloads. It also defines a `download()` function to handle the download process, displaying progress. The introduction concludes with a section heading for the \"TRAGEDIES\" category, which is followed by the next segment.\n","description_generated_at":"2026-01-30T20:53:32.667Z","description_model":"gemini-2.5-flash-lite","description_title":"Introduction","end_line":32,"extracted_at":"2026-01-30T20:53:12.673Z","extracted_by":"structure-extraction-lambda","label":"Introduction","source_file":"01KG89K4MCC02B3RKGNV2XEV39","start_line":1,"text":"#!/bin/bash\n\n# Shakespeare Complete Works Download Script\n# Downloads public domain PDFs from Internet Archive\n# Organized by category, deduplicated (preferring illustrated editions)\n\nset -e\n\nBASE_DIR=\"/Users/chim/Working/arke_institute/collections/shakespeare\"\nARCHIVE_BASE=\"https://archive.org/download\"\n\n# Create directory structure\nmkdir -p \"$BASE_DIR\"/{tragedies,comedies,histories,poetry,illustrated_special}\n\necho \"==========================================\"\necho \"Shakespeare Complete Works Downloader\"\necho \"==========================================\"\necho \"\"\n\n# Function to download with progress\ndownload() {\n    local url=\"$1\"\n    local output=\"$2\"\n    echo \"Downloading: $(basename \"$output\")\"\n    curl -L --progress-bar -o \"$output\" \"$url\"\n    echo \"  ✓ Done\"\n}\n\n# ==========================================\n# TRAGEDIES (10 plays)\n# ==========================================\necho \"\"","title":"Introduction"},"relationships":[{"peer":"01KG8AWGEP5VC33Q2EJ85FCB6J","peer_type":"technical_manual","predicate":"in"},{"peer":"01KG89K4MCC02B3RKGNV2XEV39","peer_type":"file","predicate":"extractedFrom"},{"peer":"01KG89JREDR8WY5QQGYR5FZRDY","peer_type":"collection","predicate":"collection"},{"peer":"01KG8AWVSEBG9E2YGBY0SEZBBZ","peer_type":"segment","predicate":"next"}],"ver":3,"created_at":"2026-01-30T20:53:13.132Z","ts":"2026-01-30T20:53:32.932Z","edited_by":{"method":"manual","user_id":"01KFF5C36SQEVDHC9CBNZZJH9K"}}