ley-ar

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ley-ar — Argentine Legal Database Search

ley-ar — 阿根廷法律数据库搜索

Search jurisprudence, legislation, and doctrine from 4 public Argentine legal databases.
检索来自4个阿根廷公共法律数据库的判例法、立法条文和法律学说。

Installation

安装

bash
cd {baseDir}/scripts && pip install -e . --break-system-packages -q
Requires Python 3.10+. Dependencies: typer, httpx, rich.
bash
cd {baseDir}/scripts && pip install -e . --break-system-packages -q
要求Python 3.10及以上版本。依赖包:typer, httpx, rich。

Databases

数据库

DBSourceBest ForReliability
saij
saij.gob.arNational jurisprudence, legislation, doctrine✅ Clean JSON API
csjn
sjconsulta.csjn.gov.arSupreme Court summaries✅ HTML+JSON
juba
juba.scba.gov.arBuenos Aires Province decisions⚠️ HTML scraping
juscaba
eje.juscaba.gob.arCABA court cases/expedientes⚠️ Poor free-text
Default strategy: Start with
--db saij,csjn
. Add
juba
only for PBA-specific queries. Use
juscaba
only with case IDs.
数据库来源适用场景可靠性
saij
saij.gob.ar全国性判例法、立法条文、法律学说✅ 简洁的JSON API
csjn
sjconsulta.csjn.gov.ar最高法院案件摘要✅ HTML+JSON
juba
juba.scba.gov.ar布宜诺斯艾利斯省判决⚠️ HTML抓取
juscaba
eje.juscaba.gob.ar布宜诺斯艾利斯自治市案件/诉讼档案⚠️ 全文检索效果差
默认策略:
--db saij,csjn
开始搜索。仅在查询布宜诺斯艾利斯省相关内容时添加
juba
。仅在使用案件编号时使用
juscaba

Commands

命令

bash
undefined
bash
undefined

Search all databases (parallel)

搜索所有数据库(并行)

ley search "prescripción adquisitiva"
ley search "prescripción adquisitiva"

Filter by database(s)

按数据库过滤

ley search "daño moral" --db saij,csjn
ley search "daño moral" --db saij,csjn

Limit results

限制结果数量

ley search "phishing bancario" --db saij --limit 5
ley search "phishing bancario" --db saij --limit 5

JSON output for scripting

输出JSON格式用于脚本开发

ley search "responsabilidad civil" --db csjn --json
ley search "responsabilidad civil" --db csjn --json

Plain text

输出纯文本格式

ley search "contrato de locación" --text
ley search "contrato de locación" --text

Status check

状态检查

ley status ley --version
undefined
ley status ley --version
undefined

Search Tips

搜索技巧

  • Use legal terminology: "daños y perjuicios" not "accidente de auto"
  • Be specific: "prescripción adquisitiva inmueble" > "prescripción"
  • "Patentes" ambiguity: returns IP patents, not vehicle tax. Use "impuesto automotor" or "radicación automotor" instead.
  • For current tax rates or alícuotas, use web search — these databases index case law, not regulatory info.
  • 使用法律术语:例如用"daños y perjuicios"而非"accidente de auto"
  • 尽量具体:例如"prescripción adquisitiva inmueble"比"prescripción"效果更好
  • "Patentes"歧义说明: 该词会返回知识产权专利相关结果,而非车辆税相关内容。如需查询车辆税,请使用"impuesto automotor"或"radicación automotor"。
  • 若需查询当前税率或alícuotas(税率份额),请使用网页搜索——这些数据库仅收录判例法,不包含监管信息。

Output

输出格式

Each result:
db
,
id
,
title
,
date
,
snippet
,
url
. Default: Rich table.
--json
for structured data.
每条结果包含:
db
(数据库)、
id
(编号)、
title
(标题)、
date
(日期)、
snippet
(摘要)、
url
(链接)。默认输出格式为Rich表格。使用
--json
参数可获取结构化数据。

Limitations

局限性

  • JUBA depends on ASP.NET WebForms scraping — breaks if site changes
  • CSJN full case text may need reCAPTCHA (summaries work)
  • JUSCABA works best with case identifiers, not free-text
  • No auth required — all public APIs
  • Respect rate limits: avoid rapid-fire queries
  • JUBA依赖于ASP.NET WebForms抓取——若网站改版则可能失效
  • CSJN的完整案件文本可能需要验证reCAPTCHA(案件摘要可正常获取)
  • JUSCABA在使用案件编号时效果最佳,不适合全文检索
  • 无需身份验证——所有API均为公开接口
  • 请遵守请求频率限制:避免短时间内大量请求