scrape-cdep
Scrape Romanian Chamber of Deputies (cdep.ro) for parliamentary transcripts, MP profiles, and session data. Use when user says "scrape cdep", "chamber deputies", "parliamentary sessions", "update parliament data".
- License 许可
- MIT
- 最近更新
- 2026-04-29
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- scrape-cdep
- description
- Scrape Romanian Chamber of Deputies (cdep.ro) for parliamentary transcripts, MP profiles, and session data. Use when user says "scrape cdep", "chamber deputies", "parliamentary sessions", "update parliament data".
- allowed-tools
- Bash, Read, Write, Task
03 SKILL.md 正文
Scrape cdep.ro
Scrape the Chamber of Deputies website for parliamentary data.
Prerequisites
Option A: Auto-Browser (Docker - Primary)
cd auto-browser && docker compose up -d
# Wait for services to start
Option B: Native Playwright (Fallback)
pip install playwright && playwright install chromium
Workflow
Step 1: Create Session (Auto-Browser)
curl -s http://127.0.0.1:8000/sessions \
-X POST -H 'content-type: application/json' \
-d '{"name":"cdep-scrape","start_url":"https://www.cdep.ro/pls/stenogr/"}'
Step 2: Navigate to Stenograms
curl -s "http://127.0.0.1:8000/sessions/$SESSION_ID/navigate?url=https://www.cdep.ro/pls/stenogr/"
Step 3: Get Content
curl -s "http://127.0.0.1:8000/sessions/$SESSION_ID/snapshot"
curl -s "http://127.0.0.1:8000/sessions/$SESSION_ID/get_text"
Step 4: Save Raw Data
Save to: data/cdep/scrape-$(date +%Y%m%d)/
Step 5: Process via Existing Pipeline
python3 scripts/agents/cdep_agent.py --years 2024,2025 --sync-vault
Output
- Raw HTML:
data/cdep/stenogram_*.html - Processed: Updated vault files
- Knowledge Graph: entities.json updated
Integration Points
- Uses existing
scripts/agents/cdep_agent.py - Updates vault via sync_vault.py
- Triggers MemPalace via bridge
Notes
- cdep.ro blocks historical data 1996-2014 (returns 404)
- Current legislature: 2024-2028
- Session IDs available from calendar page
04 同仓库更多 Skills
status
Show MemPalace status — room counts, storage usage, and palace health.
search
Search your MemPalace — semantic search across all mined memories, projects, and conversations.
scrape-senat
Scrape Romanian Senate (senat.ro) for senate sessions, senator profiles, and legislation. Use when user says "scrape senate", "senat.ro", "senate sessions".
scrape-parliament
Complete parliamentary data scrape - scrapes both cdep.ro and senat.ro, processes data, updates knowledge graph. Use when user says "scrape parliament", "update parliament data", "refresh parliamentary knowledge", "full scrape".
parliament-query
Query the complete parliamentary knowledge graph - MPs, sessions, laws, debates. Use when user asks "who said", "what law", "when session", "parliamentary data", "find mp".
mine
Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.