How atacanymc/yargitay-karar-scraper works
Yargıtay Karar Scraper exposes legal-decision search and full-text retrieval through a Python client, a terminal CLI, and an MCP server. Users submit simple or detailed search criteria; the scraper queries Yargıtay and returns structured results, which can then be used to request and read a cleaned decision text. The graph separates the entry points, search/retrieval logic, and data models. Source excerpts establish the internal calls; the README documents the MCP and library use cases.
Main entry points: client.py Search and retrieval client · main.py CLI commands · server.py MCP tools · models.py Criteria and responses
Components 8
User interfaces
- CLI commands
yargitay_karar_scraper/cli/main.py - MCP tools
yargitay_karar_scraper/mcp/server.py
Scraper runtime
- Search and retrieval client
yargitay_karar_scraper/scraper/client.py - Decision text cleaning
yargitay_karar_scraper/scraper/client.py
Search data
- Criteria and responses
yargitay_karar_scraper/scraper/models.py
Other components
- CLI user
- MCP host / LLM
- Yargıtay search site
Connections 11
- CLI user → CLI commands: runs commands
README.md - MCP host / LLM → MCP tools: calls tools
README.md - CLI commands → Criteria and responses: builds criteria
yargitay_karar_scraper/cli/main.py - CLI commands → Search and retrieval client: requests searches
yargitay_karar_scraper/cli/main.py - CLI commands → Search and retrieval client: requests details
yargitay_karar_scraper/cli/main.py - MCP tools → Criteria and responses: builds criteria
yargitay_karar_scraper/mcp/server.py - MCP tools → Search and retrieval client: requests searches
yargitay_karar_scraper/mcp/server.py - MCP tools → Search and retrieval client: requests details
yargitay_karar_scraper/mcp/server.py - Search and retrieval client → Criteria and responses: uses and returns
yargitay_karar_scraper/scraper/client.py - Search and retrieval client → Yargıtay search site: sends search and detail requests
yargitay_karar_scraper/scraper/client.py - Search and retrieval client → Decision text cleaning: cleans document text
yargitay_karar_scraper/scraper/client.py