scrape-lorcana
Automates the scraping of Lorcana card lists and exports them to local CSV/TSV files.
Install
mkdir -p .claude/skills/scrape-lorcana && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15149" && unzip -o skill.zip -d .claude/skills/scrape-lorcana && rm skill.zipInstalls to .claude/skills/scrape-lorcana
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Skill: scrape-lorcanaKey capabilities
- →Trigger a scraper workflow via GitHub Actions
- →Scrape card data from a LorcanaPlayer URL
- →Commit scraped CSV/TSV data to the repository
- →Run the scraper script locally using Python
- →Push CSV/TSV output to a Google Sheet
- →Set up Google Cloud service account for Google Sheets API
How it works
The skill either triggers a GitHub Actions workflow or runs a local Python script to scrape Lorcana player card data from a specified URL, then commits the resulting CSV/TSV file to the repository or pushes it to a Google Sheet.
Inputs & outputs
When to use scrape-lorcana
- →Scrape new Lorcana set lists
- →Update card list data
- →Extract tournament data
About this skill
Skill: scrape-lorcana
Trigger: "scrape lorcana"
Description: Run the Lorcana Player list scraper and write CSV/TSV to assets/lorcana. This skill is a thin caller that runs the script in scripts/ and commits the result.
GitHub Actions (preferred):
Trigger manually via the scrape-lorcana workflow in .github/workflows/scrape-lorcana.yaml.
Go to Actions → "Scrape Lorcana Player" → Run workflow, then paste the LorcanaPlayer URL.
The workflow runs on workflow_dispatch only (no schedule), takes lorcanaplayer_url as input,
scrapes the card list, and commits the CSV/TSV to assets/lorcana/.
Run locally:
Example: scrape Wilds Unknown (set 12)
python3 scripts/scrape_lorcana_site.py "https://lorcanaplayer.com/wilds-unknown-card-list-lorcana-set-12/" assets/lorcana
Confidence bar (automated header)
This repository includes a small helper that renders a 20-character-wide confidence bar used in skill headers and operator prompts. The bar uses two Unicode symbols:
- Filled: █ (U+2588 FULL BLOCK)
- Empty: ░ (U+2591 LIGHT SHADE)
Format (20-character bar):
<TICKET> — Ticket Title ━━━━━━━━━━━━━━━━━━━━━━━━ Confidence: ████░░░░░░░░░░░░░░░░ 20% (need 95%)
Scale: filled_chars = round(percentage / 100 * 20)
At 95%+ the trailing text becomes: ✓ ready to investigate
Usage (helper script):
python3 scripts/confidence_bar.py <ticket-id> "Ticket Title" <percentage> [threshold]
Example: python3 scripts/confidence_bar.py INFRA-123 "Investigate network" 20 95
Integration rules
- Re-render the full header block (including the bar) after every assistant answer and after every phase transition.
- Gate: Do not proceed to execution steps unless confidence >= threshold (default 95%). If confidence is below threshold, ask the operator to explicitly waive the gate before executing.
- At confidence >= threshold replace "(need 95%)" with "✓ ready to investigate".
Post-processing (optional): commit and push generated files
git add assets/lorcana/.csv assets/lorcana/.tsv && git commit -m "Add scraped Lorcana set data" && git push
Notes:
- The scraper uses requests + BeautifulSoup if installed; otherwise it falls back to stdlib parsing. For best results, install dependencies: pip install requests beautifulsoup4
- Running the crawler may take a minute as it fetches card detail pages. Rate-limited to be polite.
Updating Google Sheets via API
This skill can push CSV/TSV output directly into a Google Sheet using a service account. A helper script is provided:
python3 scripts/update_google_sheet.py --spreadsheet <SPREADSHEET_ID_OR_URL> --file scripts/wilds_unknown_paste.csv --start-row 33 --sheet "Sheet1" [--creds /path/to/sa.json]
Setup (Service Account)
-
Create a Google Cloud service account and JSON key with the "Google Sheets API" enabled.
-
Share the target Google Sheet with the service account's client_email (read/write).
-
Either set the environment variable:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
or pass --creds /path/to/service-account.json to the script.
The script will clear the sheet area starting at the start row (columns A:Z) and write the CSV rows beginning at that row.
Dependencies:
pip install google-api-python-client google-auth-httplib2 google-auth
Security:
- Do NOT commit service account credentials to the repository. Keep them local or in CI secrets.
Gate & Confidence
Before the skill writes to a live sheet, re-render the confidence header and ensure confidence >= threshold (default 95%). If below threshold, the operator must explicitly waive the gate.
Examples
Scrape and push
python3 scripts/scrape_lorcana_site.py "https://lorcanaplayer.com/wilds-unknown-card-list-lorcana-set-12/" assets/lorcana python3 scripts/update_google_sheet.py --spreadsheet "https://docs.google.com/spreadsheets/d/16ykFi413edBFxDRG__0rrBqfHOXYGFgt3p3PD0hq704/" --file assets/lorcana/wilds-unknown-card-list-lorcana-set-12.csv --start-row 33 --sheet "Card List"
Limitations
- →The scraper uses requests + BeautifulSoup if installed; otherwise it falls back to stdlib parsing
- →Running the crawler may take a minute as it fetches card detail pages
- →Do NOT commit service account credentials to the repository
How it compares
This skill automates the process of extracting and managing Lorcana card data from a specific website, providing a direct method for data acquisition and integration compared to manual data entry or generic web scraping tools.
Compared to similar skills
scrape-lorcana side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| scrape-lorcana (this skill) | 0 | 2mo | No flags | Beginner |
| firecrawl-scraper | 24 | 8mo | Caution | Beginner |
| crawl4ai | 21 | 8mo | Review | Intermediate |
| apify | 9 | 4mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
firecrawl-scraper
jackspace
Scrape and extract web content, convert HTML to markdown, and bypass bot protection for dynamic sites using Firecrawl API.
crawl4ai
basher83
This skill should be used when users need to scrape websites, extract structured data, handle JavaScript-heavy pages, crawl multiple URLs, or build automated web data pipelines. Includes optimized extraction patterns with schema generation for efficient, LLM-free extraction.
apify
vm0-ai
Web scraping and automation platform with pre-built Actors for common tasks
AkShare Mastery
sunny-kobe
Expert guide for using AkShare to fetch Chinese financial data, covering installation, proxy configuration, resilience patterns, and key interfaces.
youtube-comments-api-skill
aiskillstore
This skill helps users extract structured video list data and comment data from YouTube using the BrowserAct API. The Agent should proactively apply this skill when users request searching for YouTube videos and their comments, analyzing viewer sentiment for a specific video topic, gathering audienc
ingest-go
joesaby
Fetch Kerala Government Orders (GOs), Circulars, and Legislative Bills from official portals, parse the GO number, tag each record to the correct department, and write a typed GovernmentOrder record to data/government-orders.ts. Use whenever adding GOs, Circulars, SROs, or Bills to the dashboard.