diff options
author | Martin Fischer <martin@push-f.com> | 2021-03-04 08:01:53 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-03-04 08:04:05 +0100 |
commit | d5ae42fa1d63749de5ac332c83fd62c51eaaa5e2 (patch) | |
tree | 0427ad1657dfc8a71764c8d226b44cb078145c66 | |
parent | b0c30d5b3cc05c27270c9c6fdfb7576397bfccb0 (diff) |
add scraper for Mexico
-rw-r--r-- | assets/script.js | 2 | ||||
-rw-r--r-- | laws/mx.json | 1557 | ||||
-rwxr-xr-x | scrapers/mx.py | 28 | ||||
-rw-r--r-- | views/search.html | 21 |
4 files changed, 1601 insertions, 7 deletions
diff --git a/assets/script.js b/assets/script.js index 6d9e476..95b8393 100644 --- a/assets/script.js +++ b/assets/script.js @@ -4,6 +4,8 @@ const suggestionsDiv = document.getElementById('suggestions'); async function enableAutocomplete() { const res = await fetch('/laws.json'); const laws = await res.json(); + // TODO: strip accents before searching + searchInput.addEventListener('input', (e) => { if (searchInput.value == '') { suggestionsDiv.innerHTML = ''; diff --git a/laws/mx.json b/laws/mx.json new file mode 100644 index 0000000..8b8c59d --- /dev/null +++ b/laws/mx.json @@ -0,0 +1,1557 @@ +[ + { + "title": "CONSTITUCIÓN Política de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/cpeum.htm", + "redir": "cpeum" + }, + { + "title": "CÓDIGO Civil Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ccf.htm", + "redir": "ccf" + }, + { + "title": "CÓDIGO Federal de Procedimientos Civiles", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/cfpc.htm", + "redir": "cfpc" + }, + { + "title": "CÓDIGO Fiscal de la Federación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/cff.htm", + "redir": "cff" + }, + { + "title": "CÓDIGO Militar de Procedimientos Penales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/cmpp.htm", + "redir": "cmpp" + }, + { + "title": "CÓDIGO Nacional de Procedimientos Penales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/cnpp.htm", + "redir": "cnpp" + }, + { + "title": "CÓDIGO Penal Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/cpf.htm", + "redir": "cpf" + }, + { + "title": "CÓDIGO de Comercio", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ccom.htm", + "redir": "ccom" + }, + { + "title": "CÓDIGO de Justicia Militar", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/cjm.htm", + "redir": "cjm" + }, + { + "title": "DECRETO por el que se establece el Horario Estacional que se aplicará en los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/dec_heeum.htm", + "redir": "dec_heeum" + }, + { + "title": "ESTATUTO de Gobierno del Distrito Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/egdf.htm", + "redir": "egdf" + }, + { + "title": "Federal de Responsabilidad Ambiental", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfra.htm", + "redir": "lfra" + }, + { + "title": "IMPUESTO sobre Servicios Expresamente Declarados de Interés Público por Ley, en los que Intervengan Empresas Concesionarias de Bienes del Dominio Directo de la Nación (LEY que establece, reforma y adiciona las disposiciones relativas a diversos impuestos)", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lisipl.htm", + "redir": "lisipl" + }, + { + "title": "LEY", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfra.htm", + "redir": "lfra" + }, + { + "title": "LEY Aduanera", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ladua.htm", + "redir": "ladua" + }, + { + "title": "LEY Agraria", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lagra.htm", + "redir": "lagra" + }, + { + "title": "LEY Federal contra la Delincuencia Organizada", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfcdo.htm", + "redir": "lfcdo" + }, + { + "title": "LEY Federal de Armas de Fuego y Explosivos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfafe.htm", + "redir": "lfafe" + }, + { + "title": "LEY Federal de Austeridad Republicana", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfar.htm", + "redir": "lfar" + }, + { + "title": "LEY Federal de Cinematografía", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfc.htm", + "redir": "lfc" + }, + { + "title": "LEY Federal de Competencia Económica", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfce.htm", + "redir": "lfce" + }, + { + "title": "LEY Federal de Consulta Popular", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfcpo.htm", + "redir": "lfcpo" + }, + { + "title": "LEY Federal de Correduría Pública", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfcp.htm", + "redir": "lfcp" + }, + { + "title": "LEY Federal de Declaración Especial de Ausencia para Personas Desaparecidas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfdeapd.htm", + "redir": "lfdeapd" + }, + { + "title": "LEY Federal de Defensoría Pública", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfdefp.htm", + "redir": "lfdefp" + }, + { + "title": "LEY Federal de Derechos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfd.htm", + "redir": "lfd" + }, + { + "title": "LEY Federal de Deuda Pública", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgdp.htm", + "redir": "lgdp" + }, + { + "title": "LEY Federal de Fomento a las Actividades Realizadas por Organizaciones de la Sociedad Civil", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lffaosc.htm", + "redir": "lffaosc" + }, + { + "title": "LEY Federal de Juegos y Sorteos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfjs.htm", + "redir": "lfjs" + }, + { + "title": "LEY Federal de Presupuesto y Responsabilidad Hacendaria", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfprh.htm", + "redir": "lfprh" + }, + { + "title": "LEY Federal de Procedimiento Administrativo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfpa.htm", + "redir": "lfpa" + }, + { + "title": "LEY Federal de Procedimiento Contencioso Administrativo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfpca.htm", + "redir": "lfpca" + }, + { + "title": "LEY Federal de Producción, Certificación y Comercio de Semillas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfpccs.htm", + "redir": "lfpccs" + }, + { + "title": "LEY Federal de Protección a la Propiedad Industrial", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfppi.htm", + "redir": "lfppi" + }, + { + "title": "LEY Federal de Protección al Consumidor", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfpc.htm", + "redir": "lfpc" + }, + { + "title": "LEY Federal de Protección de Datos Personales en Posesión de los Particulares", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfpdppp.htm", + "redir": "lfpdppp" + }, + { + "title": "LEY Federal de Remuneraciones de los Servidores Públicos, Reglamentaria de los Artículos 75 y 127 de la Constitución Política de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfremsp.htm", + "redir": "lfremsp" + }, + { + "title": "LEY Federal de Responsabilidad Patrimonial del Estado", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfrpe.htm", + "redir": "lfrpe" + }, + { + "title": "LEY Federal de Responsabilidades de los Servidores Públicos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfrsp.htm", + "redir": "lfrsp" + }, + { + "title": "LEY Federal de Sanidad Animal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfsa.htm", + "redir": "lfsa" + }, + { + "title": "LEY Federal de Sanidad Vegetal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfsv.htm", + "redir": "lfsv" + }, + { + "title": "LEY Federal de Seguridad Privada", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfsp.htm", + "redir": "lfsp" + }, + { + "title": "LEY Federal de Telecomunicaciones y Radiodifusión", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lftr.htm", + "redir": "lftr" + }, + { + "title": "LEY Federal de Transparencia y Acceso a la Información Pública", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lftaip.htm", + "redir": "lftaip" + }, + { + "title": "LEY Federal de Variedades Vegetales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfvv.htm", + "redir": "lfvv" + }, + { + "title": "LEY Federal de Zonas Económicas Especiales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfzee.htm", + "redir": "lfzee" + }, + { + "title": "LEY Federal de las Entidades Paraestatales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfep.htm", + "redir": "lfep" + }, + { + "title": "LEY Federal de los Derechos del Contribuyente", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfdc.htm", + "redir": "lfdc" + }, + { + "title": "LEY Federal de los Trabajadores al Servicio del Estado, Reglamentaria del Apartado B) del Artículo 123 Constitucional", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lftse.htm", + "redir": "lftse" + }, + { + "title": "LEY Federal del Derecho de Autor", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfda.htm", + "redir": "lfda" + }, + { + "title": "LEY Federal del Impuesto sobre Automóviles Nuevos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfisan.htm", + "redir": "lfisan" + }, + { + "title": "LEY Federal del Mar", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfm.htm", + "redir": "lfm" + }, + { + "title": "LEY Federal del Trabajo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lft.htm", + "redir": "lft" + }, + { + "title": "LEY Federal para Prevenir y Eliminar la Discriminación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfped.htm", + "redir": "lfped" + }, + { + "title": "LEY Federal para Prevenir y Sancionar los Delitos Cometidos en Materia de Hidrocarburos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfpsdmh.htm", + "redir": "lfpsdmh" + }, + { + "title": "LEY Federal para el Control de Precursores Químicos, Productos Químicos Esenciales y Máquinas para Elaborar Cápsulas, Tabletas y/o Comprimidos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfcpq.htm", + "redir": "lfcpq" + }, + { + "title": "LEY Federal para el Control de Sustancias Químicas Susceptibles de Desvío para la Fabricación de Armas Químicas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfcsq.htm", + "redir": "lfcsq" + }, + { + "title": "LEY Federal para el Fomento de la Microindustria y la Actividad Artesanal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lffmaa.htm", + "redir": "lffmaa" + }, + { + "title": "LEY Federal para el Fomento y Protección del Maíz Nativo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lffpmn.htm", + "redir": "lffpmn" + }, + { + "title": "LEY Federal para la Administración y Enajenación de Bienes del Sector Público", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfaebsp.htm", + "redir": "lfaebsp" + }, + { + "title": "LEY Federal para la Prevención e Identificación de Operaciones con Recursos de Procedencia Ilícita", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfpiorpi.htm", + "redir": "lfpiorpi" + }, + { + "title": "LEY Federal para la Protección a Personas que Intervienen en el Procedimiento Penal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfppipp.htm", + "redir": "lfppipp" + }, + { + "title": "LEY Federal sobre Monumentos y Zonas Arqueológicos, Artísticos e Históricos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfmzaah.htm", + "redir": "lfmzaah" + }, + { + "title": "LEY General de Acceso de las Mujeres a una Vida Libre de Violencia", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgamvlv.htm", + "redir": "lgamvlv" + }, + { + "title": "LEY General de Archivos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lga.htm", + "redir": "lga" + }, + { + "title": "LEY General de Asentamientos Humanos, Ordenamiento Territorial y Desarrollo Urbano", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgahotdu.htm", + "redir": "lgahotdu" + }, + { + "title": "LEY General de Bibliotecas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgb.htm", + "redir": "lgb" + }, + { + "title": "LEY General de Bienes Nacionales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgbn.htm", + "redir": "lgbn" + }, + { + "title": "LEY General de Cambio Climático", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgcc.htm", + "redir": "lgcc" + }, + { + "title": "LEY General de Comunicación Social", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgcs.htm", + "redir": "lgcs" + }, + { + "title": "LEY General de Contabilidad Gubernamental", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgcg.htm", + "redir": "lgcg" + }, + { + "title": "LEY General de Cultura Física y Deporte", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgcfd.htm", + "redir": "lgcfd" + }, + { + "title": "LEY General de Cultura y Derechos Culturales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgcdc.htm", + "redir": "lgcdc" + }, + { + "title": "LEY General de Derechos Lingüísticos de los Pueblos Indígenas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgdlpi.htm", + "redir": "lgdlpi" + }, + { + "title": "LEY General de Desarrollo Forestal Sustentable", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgdfs.htm", + "redir": "lgdfs" + }, + { + "title": "LEY General de Desarrollo Social", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgds.htm", + "redir": "lgds" + }, + { + "title": "LEY General de Educación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lge.htm", + "redir": "lge" + }, + { + "title": "LEY General de Instituciones y Procedimientos Electorales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgipe.htm", + "redir": "lgipe" + }, + { + "title": "LEY General de Mejora Regulatoria", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgmr.htm", + "redir": "lgmr" + }, + { + "title": "LEY General de Organizaciones y Actividades Auxiliares del Crédito", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgoaac.htm", + "redir": "lgoaac" + }, + { + "title": "LEY General de Partidos Políticos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpp.htm", + "redir": "lgpp" + }, + { + "title": "LEY General de Pesca y Acuacultura Sustentables", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpas.htm", + "redir": "lgpas" + }, + { + "title": "LEY General de Población", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgp.htm", + "redir": "lgp" + }, + { + "title": "LEY General de Prestación de Servicios para la Atención, Cuidado y Desarrollo Integral Infantil", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpsacdii.htm", + "redir": "lgpsacdii" + }, + { + "title": "LEY General de Protección Civil", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpc.htm", + "redir": "lgpc" + }, + { + "title": "LEY General de Protección de Datos Personales en Posesión de Sujetos Obligados", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpdppso.htm", + "redir": "lgpdppso" + }, + { + "title": "LEY General de Responsabilidades Administrativas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgra.htm", + "redir": "lgra" + }, + { + "title": "LEY General de Salud", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgs.htm", + "redir": "lgs" + }, + { + "title": "LEY General de Sociedades Cooperativas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgsc.htm", + "redir": "lgsc" + }, + { + "title": "LEY General de Sociedades Mercantiles", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgsm.htm", + "redir": "lgsm" + }, + { + "title": "LEY General de Transparencia y Acceso a la Información Pública", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgtaip.htm", + "redir": "lgtaip" + }, + { + "title": "LEY General de Turismo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgt.htm", + "redir": "lgt" + }, + { + "title": "LEY General de Títulos y Operaciones de Crédito", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgtoc.htm", + "redir": "lgtoc" + }, + { + "title": "LEY General de Vida Silvestre", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgvs.htm", + "redir": "lgvs" + }, + { + "title": "LEY General de Víctimas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgv.htm", + "redir": "lgv" + }, + { + "title": "LEY General de los Derechos de Niñas, Niños y Adolescentes", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgdnna.htm", + "redir": "lgdnna" + }, + { + "title": "LEY General del Equilibrio Ecológico y la Protección al Ambiente", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgeepa.htm", + "redir": "lgeepa" + }, + { + "title": "LEY General del Sistema Nacional Anticorrupción", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgsna.htm", + "redir": "lgsna" + }, + { + "title": "LEY General del Sistema Nacional de Seguridad Pública", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgsnsp.htm", + "redir": "lgsnsp" + }, + { + "title": "LEY General del Sistema de Medios de Impugnación en Materia Electoral", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgsmime.htm", + "redir": "lgsmime" + }, + { + "title": "LEY General del Sistema para la Carrera de las Maestras y los Maestros", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgscmm.htm", + "redir": "lgscmm" + }, + { + "title": "LEY General en Materia de Delitos Electorales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgmde.htm", + "redir": "lgmde" + }, + { + "title": "LEY General en Materia de Desaparición Forzada de Personas, Desaparición Cometida por Particulares y del Sistema Nacional de Búsqueda de Personas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgmdfp.htm", + "redir": "lgmdfp" + }, + { + "title": "LEY General para Prevenir y Sancionar los Delitos en Materia de Secuestro, Reglamentaria de la fracción XXI del artículo 73 de la Constitución Política de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpsdms.htm", + "redir": "lgpsdms" + }, + { + "title": "LEY General para Prevenir, Investigar y Sancionar la Tortura y Otros Tratos o Penas Crueles, Inhumanos o Degradantes", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpist.htm", + "redir": "lgpist" + }, + { + "title": "LEY General para Prevenir, Sancionar y Erradicar los Delitos en Materia de Trata de Personas y para la Protección y Asistencia a las Víctimas de estos Delitos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpsedmtp.htm", + "redir": "lgpsedmtp" + }, + { + "title": "LEY General para el Control del Tabaco", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgct.htm", + "redir": "lgct" + }, + { + "title": "LEY General para la Atención y Protección a Personas con la Condición del Espectro Autista", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgappcea.htm", + "redir": "lgappcea" + }, + { + "title": "LEY General para la Detección Oportuna del Cáncer en la Infancia y la Adolescencia", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgdocia.htm", + "redir": "lgdocia" + }, + { + "title": "LEY General para la Igualdad entre Mujeres y Hombres", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgimh.htm", + "redir": "lgimh" + }, + { + "title": "LEY General para la Inclusión de las Personas con Discapacidad", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgipd.htm", + "redir": "lgipd" + }, + { + "title": "LEY General para la Prevención Social de la Violencia y la Delincuencia", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpsvd.htm", + "redir": "lgpsvd" + }, + { + "title": "LEY General para la Prevención y Gestión Integral de los Residuos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgpgir.htm", + "redir": "lgpgir" + }, + { + "title": "LEY Minera", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lmin.htm", + "redir": "lmin" + }, + { + "title": "LEY Monetaria de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lmeum.htm", + "redir": "lmeum" + }, + { + "title": "LEY Nacional de Ejecución Penal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lnep.htm", + "redir": "lnep" + }, + { + "title": "LEY Nacional de Extinción de Dominio", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lned.htm", + "redir": "lned" + }, + { + "title": "LEY Nacional de Mecanismos Alternativos de Solución de Controversias en Materia Penal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lnmascmp.htm", + "redir": "lnmascmp" + }, + { + "title": "LEY Nacional del Registro de Detenciones", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lnrd.htm", + "redir": "lnrd" + }, + { + "title": "LEY Nacional del Sistema Integral de Justicia Penal para Adolescentes", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lnsijpa.htm", + "redir": "lnsijpa" + }, + { + "title": "LEY Nacional sobre el Uso de la Fuerza", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lnuf.htm", + "redir": "lnuf" + }, + { + "title": "LEY Orgánica de Nacional Financiera", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lonf.htm", + "redir": "lonf" + }, + { + "title": "LEY Orgánica de Sociedad Hipotecaria Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/loshf.htm", + "redir": "loshf" + }, + { + "title": "LEY Orgánica de la Administración Pública Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/loapf.htm", + "redir": "loapf" + }, + { + "title": "LEY Orgánica de la Armada de México", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/loam.htm", + "redir": "loam" + }, + { + "title": "LEY Orgánica de la Financiera Nacional de Desarrollo Agropecuario, Rural, Forestal y Pesquero", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lofr.htm", + "redir": "lofr" + }, + { + "title": "LEY Orgánica de la Fiscalía General de la República", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lofgr.htm", + "redir": "lofgr" + }, + { + "title": "LEY Orgánica de la Procuraduría General de Justicia del Distrito Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lopgjdf.htm", + "redir": "lopgjdf" + }, + { + "title": "LEY Orgánica de la Procuraduría de la Defensa del Contribuyente", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lopdc.htm", + "redir": "lopdc" + }, + { + "title": "LEY Orgánica de la Universidad Autónoma Agraria Antonio Narro", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/louaaan.htm", + "redir": "louaaan" + }, + { + "title": "LEY Orgánica de la Universidad Autónoma Metropolitana", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/louam.htm", + "redir": "louam" + }, + { + "title": "LEY Orgánica de la Universidad Nacional Autónoma de México", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lounam.htm", + "redir": "lounam" + }, + { + "title": "LEY Orgánica de los Tribunales Agrarios", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lota.htm", + "redir": "lota" + }, + { + "title": "LEY Orgánica del Banco Nacional de Comercio Exterior", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lobnce.htm", + "redir": "lobnce" + }, + { + "title": "LEY Orgánica del Banco Nacional de Obras y Servicios Públicos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lobnosp.htm", + "redir": "lobnosp" + }, + { + "title": "LEY Orgánica del Banco Nacional del Ejército, Fuerza Aérea y Armada", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lobnefaa.htm", + "redir": "lobnefaa" + }, + { + "title": "LEY Orgánica del Banco del Bienestar", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lobb.htm", + "redir": "lobb" + }, + { + "title": "LEY Orgánica del Centro Federal de Conciliación y Registro Laboral", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/locfcrl.htm", + "redir": "locfcrl" + }, + { + "title": "LEY Orgánica del Congreso General de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/locg.htm", + "redir": "locg" + }, + { + "title": "LEY Orgánica del Consejo Nacional de Ciencia y Tecnología", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/locnct.htm", + "redir": "locnct" + }, + { + "title": "LEY Orgánica del Ejército y Fuerza Aérea Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/loefam.htm", + "redir": "loefam" + }, + { + "title": "LEY Orgánica del Instituto Nacional de Antropología e Historia", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/loinah.htm", + "redir": "loinah" + }, + { + "title": "LEY Orgánica del Instituto Politécnico Nacional", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/loipn.htm", + "redir": "loipn" + }, + { + "title": "LEY Orgánica del Poder Judicial de la Federación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lopjf.htm", + "redir": "lopjf" + }, + { + "title": "LEY Orgánica del Seminario de Cultura Mexicana", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/loscm.htm", + "redir": "loscm" + }, + { + "title": "LEY Orgánica del Tribunal Federal de Justicia Administrativa", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lotfja.htm", + "redir": "lotfja" + }, + { + "title": "LEY Reglamentaria de la Fracción V del Artículo 76 de la Constitución General de la República", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrfv_art76.htm", + "redir": "lrfv_art76" + }, + { + "title": "LEY Reglamentaria de la Fracción XIII Bis del Apartado B, del Artículo 123 de la Constitución Política de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrfxiiib_art123.htm", + "redir": "lrfxiiib_art123" + }, + { + "title": "LEY Reglamentaria de la Fracción XVIII del Artículo 73 Constitucional, en lo que se Refiere a la Facultad del Congreso para Dictar Reglas para Determinar el Valor Relativo de la Moneda Extranjera", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrfxviii_art73.htm", + "redir": "lrfxviii_art73" + }, + { + "title": "LEY Reglamentaria de la fracción VI del artículo 76 de la Constitución Política de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrart76_fracvi.htm", + "redir": "lrart76_fracvi" + }, + { + "title": "LEY Reglamentaria de las Fracciones I y II del Artículo 105 de la Constitución Política de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrfiyii_art105.htm", + "redir": "lrfiyii_art105" + }, + { + "title": "LEY Reglamentaria del Artículo 27 Constitucional en Materia Nuclear", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrart27_mn.htm", + "redir": "lrart27_mn" + }, + { + "title": "LEY Reglamentaria del Artículo 3o. de la Constitución Política de los Estados Unidos Mexicanos, en materia de Mejora Continua de la Educación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrart3_mmce.htm", + "redir": "lrart3_mmce" + }, + { + "title": "LEY Reglamentaria del Artículo 5o. Constitucional, relativo al ejercicio de las profesiones en la Ciudad de México", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrart5_prof.htm", + "redir": "lrart5_prof" + }, + { + "title": "LEY Reglamentaria del Servicio Ferroviario", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrsf.htm", + "redir": "lrsf" + }, + { + "title": "LEY Reglamentaria del artículo 6o., párrafo primero, de la Constitución Política de los Estados Unidos Mexicanos, en materia del Derecho de Réplica", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrart6_mdr.htm", + "redir": "lrart6_mdr" + }, + { + "title": "LEY Sobre el Contrato de Seguro", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcs.htm", + "redir": "lcs" + }, + { + "title": "LEY Sobre la Aprobación de Tratados Internacionales en Materia Económica", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/latime.htm", + "redir": "latime" + }, + { + "title": "LEY de Adquisiciones, Arrendamientos y Servicios del Sector Público", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/laassp.htm", + "redir": "laassp" + }, + { + "title": "LEY de Aeropuertos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/laero.htm", + "redir": "laero" + }, + { + "title": "LEY de Aguas Nacionales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lan.htm", + "redir": "lan" + }, + { + "title": "LEY de Ahorro y Crédito Popular", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lacp.htm", + "redir": "lacp" + }, + { + "title": "LEY de Amnistía", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lamn.htm", + "redir": "lamn" + }, + { + "title": "LEY de Amnistía", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lamni.htm", + "redir": "lamni" + }, + { + "title": "LEY de Amparo, Reglamentaria de los artículos 103 y 107 de la Constitución Política de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lamp.htm", + "redir": "lamp" + }, + { + "title": "LEY de Ascensos de la Armada de México", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/laam.htm", + "redir": "laam" + }, + { + "title": "LEY de Ascensos y Recompensas del Ejército y Fuerza Aérea Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/larefam.htm", + "redir": "larefam" + }, + { + "title": "LEY de Asistencia Social", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lasoc.htm", + "redir": "lasoc" + }, + { + "title": "LEY de Asociaciones Público Privadas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lapp.htm", + "redir": "lapp" + }, + { + "title": "LEY de Asociaciones Religiosas y Culto Público", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/larcp.htm", + "redir": "larcp" + }, + { + "title": "LEY de Aviación Civil", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lac.htm", + "redir": "lac" + }, + { + "title": "LEY de Ayuda Alimentaria para los Trabajadores", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/laat.htm", + "redir": "laat" + }, + { + "title": "LEY de Bioseguridad de Organismos Genéticamente Modificados", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lbogm.htm", + "redir": "lbogm" + }, + { + "title": "LEY de Caminos, Puentes y Autotransporte Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcpaf.htm", + "redir": "lcpaf" + }, + { + "title": "LEY de Capitalización del Procampo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcpro.htm", + "redir": "lcpro" + }, + { + "title": "LEY de Ciencia y Tecnología", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lct.htm", + "redir": "lct" + }, + { + "title": "LEY de Comercio Exterior", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lce.htm", + "redir": "lce" + }, + { + "title": "LEY de Concursos Mercantiles", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcm.htm", + "redir": "lcm" + }, + { + "title": "LEY de Contribución de Mejoras por Obras Públicas Federales de Infraestructura Hidráulica", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcmopfih.htm", + "redir": "lcmopfih" + }, + { + "title": "LEY de Cooperación Internacional para el Desarrollo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcid.htm", + "redir": "lcid" + }, + { + "title": "LEY de Coordinación Fiscal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcf.htm", + "redir": "lcf" + }, + { + "title": "LEY de Cámaras Empresariales y sus Confederaciones", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcec.htm", + "redir": "lcec" + }, + { + "title": "LEY de Desarrollo Rural Sustentable", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldrs.htm", + "redir": "ldrs" + }, + { + "title": "LEY de Desarrollo Sustentable de la Caña de Azúcar", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldsca.htm", + "redir": "ldsca" + }, + { + "title": "LEY de Disciplina Financiera de las Entidades Federativas y los Municipios", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldfefm.htm", + "redir": "ldfefm" + }, + { + "title": "LEY de Disciplina del Ejército y Fuerza Aérea Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldefam.htm", + "redir": "ldefam" + }, + { + "title": "LEY de Disciplina para el Personal de la Armada de México", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldparm.htm", + "redir": "ldparm" + }, + { + "title": "LEY de Educación Militar del Ejército y Fuerza Aérea Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lemefam.htm", + "redir": "lemefam" + }, + { + "title": "LEY de Educación Naval", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/len.htm", + "redir": "len" + }, + { + "title": "LEY de Energía Geotérmica", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/leg.htm", + "redir": "leg" + }, + { + "title": "LEY de Energía para el Campo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lec.htm", + "redir": "lec" + }, + { + "title": "LEY de Expropiación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lexp.htm", + "redir": "lexp" + }, + { + "title": "LEY de Extradición Internacional", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lei.htm", + "redir": "lei" + }, + { + "title": "LEY de Firma Electrónica Avanzada", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfea.htm", + "redir": "lfea" + }, + { + "title": "LEY de Fiscalización y Rendición de Cuentas de la Federación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfrcf.htm", + "redir": "lfrcf" + }, + { + "title": "LEY de Fomento a la Confianza Ciudadana", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfcc.htm", + "redir": "lfcc" + }, + { + "title": "LEY de Fomento a la Industria Vitivinícola", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfiv.htm", + "redir": "lfiv" + }, + { + "title": "LEY de Fomento para la Lectura y el Libro", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfll.htm", + "redir": "lfll" + }, + { + "title": "LEY de Fondos de Aseguramiento Agropecuario y Rural", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfaar.htm", + "redir": "lfaar" + }, + { + "title": "LEY de Fondos de Inversión", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsi.htm", + "redir": "lsi" + }, + { + "title": "LEY de Hidrocarburos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lhidro.htm", + "redir": "lhidro" + }, + { + "title": "LEY de Infraestructura de la Calidad", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lical.htm", + "redir": "lical" + }, + { + "title": "LEY de Ingresos de la Federación para el Ejercicio Fiscal de 2021", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lif_2021.htm", + "redir": "lif_2021" + }, + { + "title": "LEY de Ingresos sobre Hidrocarburos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lih.htm", + "redir": "lih" + }, + { + "title": "LEY de Instituciones de Crédito", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lic.htm", + "redir": "lic" + }, + { + "title": "LEY de Instituciones de Seguros y de Fianzas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lisf.htm", + "redir": "lisf" + }, + { + "title": "LEY de Inversión Extranjera", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lie.htm", + "redir": "lie" + }, + { + "title": "LEY de Migración", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lmigra.htm", + "redir": "lmigra" + }, + { + "title": "LEY de Nacionalidad", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lnac.htm", + "redir": "lnac" + }, + { + "title": "LEY de Navegación y Comercio Marítimos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lncm.htm", + "redir": "lncm" + }, + { + "title": "LEY de Obras Públicas y Servicios Relacionados con las Mismas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lopsrm.htm", + "redir": "lopsrm" + }, + { + "title": "LEY de Organizaciones Ganaderas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/log.htm", + "redir": "log" + }, + { + "title": "LEY de Petróleos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lpm.htm", + "redir": "lpm" + }, + { + "title": "LEY de Planeación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lplan.htm", + "redir": "lplan" + }, + { + "title": "LEY de Premios, Estímulos y Recompensas Civiles", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lperc.htm", + "redir": "lperc" + }, + { + "title": "LEY de Productos Orgánicos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lpo.htm", + "redir": "lpo" + }, + { + "title": "LEY de Promoción y Desarrollo de los Bioenergéticos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lpdb.htm", + "redir": "lpdb" + }, + { + "title": "LEY de Protección al Ahorro Bancario", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lpab.htm", + "redir": "lpab" + }, + { + "title": "LEY de Protección al Comercio y la Inversión de Normas Extranjeras que Contravengan el Derecho Internacional", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lpcinecdi.htm", + "redir": "lpcinecdi" + }, + { + "title": "LEY de Protección y Defensa al Usuario de Servicios Financieros", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lpdusf.htm", + "redir": "lpdusf" + }, + { + "title": "LEY de Puertos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lpue.htm", + "redir": "lpue" + }, + { + "title": "LEY de Recompensas de la Armada de México", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lram.htm", + "redir": "lram" + }, + { + "title": "LEY de Responsabilidad Civil por Daños Nucleares", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrcdn.htm", + "redir": "lrcdn" + }, + { + "title": "LEY de Seguridad Interior", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsint.htm", + "redir": "lsint" + }, + { + "title": "LEY de Seguridad Nacional", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsn.htm", + "redir": "lsn" + }, + { + "title": "LEY de Sistemas de Pagos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsp.htm", + "redir": "lsp" + }, + { + "title": "LEY de Sociedades de Responsabilidad Limitada de Interés Público", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsrlip.htm", + "redir": "lsrlip" + }, + { + "title": "LEY de Sociedades de Solidaridad Social", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsss.htm", + "redir": "lsss" + }, + { + "title": "LEY de Tesorería de la Federación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ltf.htm", + "redir": "ltf" + }, + { + "title": "LEY de Transición Energética", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lte.htm", + "redir": "lte" + }, + { + "title": "LEY de Transparencia y de Fomento a la Competencia en el Crédito Garantizado", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ltfccg.htm", + "redir": "ltfccg" + }, + { + "title": "LEY de Uniones de Crédito", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/luc.htm", + "redir": "luc" + }, + { + "title": "LEY de Vertimientos en las Zonas Marinas Mexicanas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lvzmm.htm", + "redir": "lvzmm" + }, + { + "title": "LEY de Vivienda", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lviv.htm", + "redir": "lviv" + }, + { + "title": "LEY de Vías Generales de Comunicación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lvgc.htm", + "redir": "lvgc" + }, + { + "title": "LEY de la Agencia Nacional de Seguridad Industrial y de Protección al Medio Ambiente del Sector Hidrocarburos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lansi.htm", + "redir": "lansi" + }, + { + "title": "LEY de la Casa de Moneda de México", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcmm.htm", + "redir": "lcmm" + }, + { + "title": "LEY de la Comisión Federal de Electricidad", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcfe.htm", + "redir": "lcfe" + }, + { + "title": "LEY de la Comisión Nacional Bancaria y de Valores", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcnbv.htm", + "redir": "lcnbv" + }, + { + "title": "LEY de la Comisión Nacional de los Derechos Humanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcndh.htm", + "redir": "lcndh" + }, + { + "title": "LEY de la Economía Social y Solidaria, Reglamentaria del Párrafo Octavo del Artículo 25 de la Constitución Política de los Estados Unidos Mexicanos, en lo referente al sector social de la economía", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/less.htm", + "redir": "less" + }, + { + "title": "LEY de la Guardia Nacional", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lgn.htm", + "redir": "lgn" + }, + { + "title": "LEY de la Industria Eléctrica", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lielec.htm", + "redir": "lielec" + }, + { + "title": "LEY de la Policía Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lpf.htm", + "redir": "lpf" + }, + { + "title": "LEY de los Derechos de las Personas Adultas Mayores", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldpam.htm", + "redir": "ldpam" + }, + { + "title": "LEY de los Impuestos Generales de Importación y de Exportación", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ligiex.htm", + "redir": "ligiex" + }, + { + "title": "LEY de los Institutos Nacionales de Salud", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lins.htm", + "redir": "lins" + }, + { + "title": "LEY de los Sistemas de Ahorro para el Retiro", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsar.htm", + "redir": "lsar" + }, + { + "title": "LEY de los Órganos Reguladores Coordinados en Materia Energética", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lorcme.htm", + "redir": "lorcme" + }, + { + "title": "LEY del Banco de México", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lbm.htm", + "redir": "lbm" + }, + { + "title": "LEY del Diario Oficial de la Federación y Gacetas Gubernamentales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldofgg.htm", + "redir": "ldofgg" + }, + { + "title": "LEY del Fondo Mexicano del Petróleo para la Estabilización y el Desarrollo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfmped.htm", + "redir": "lfmped" + }, + { + "title": "LEY del Impuesto Especial sobre Producción y Servicios", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lieps.htm", + "redir": "lieps" + }, + { + "title": "LEY del Impuesto al Valor Agregado", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/liva.htm", + "redir": "liva" + }, + { + "title": "LEY del Impuesto sobre la Renta", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lisr.htm", + "redir": "lisr" + }, + { + "title": "LEY del Instituto Mexicano de la Juventud", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/limj.htm", + "redir": "limj" + }, + { + "title": "LEY del Instituto Nacional de las Mujeres", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/linm.htm", + "redir": "linm" + }, + { + "title": "LEY del Instituto Nacional de los Pueblos Indígenas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/linpi.htm", + "redir": "linpi" + }, + { + "title": "LEY del Instituto de Seguridad Social para las Fuerzas Armadas Mexicanas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lissfam.htm", + "redir": "lissfam" + }, + { + "title": "LEY del Instituto de Seguridad y Servicios Sociales de los Trabajadores del Estado", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lissste.htm", + "redir": "lissste" + }, + { + "title": "LEY del Instituto del Fondo Nacional de la Vivienda para los Trabajadores", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lifnvt.htm", + "redir": "lifnvt" + }, + { + "title": "LEY del Instituto del Fondo Nacional para el Consumo de los Trabajadores", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lifnct.htm", + "redir": "lifnct" + }, + { + "title": "LEY del Mercado de Valores", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lmv.htm", + "redir": "lmv" + }, + { + "title": "LEY del Registro Público Vehicular", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrpv.htm", + "redir": "lrpv" + }, + { + "title": "LEY del Seguro Social", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lss.htm", + "redir": "lss" + }, + { + "title": "LEY del Servicio Exterior Mexicano", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsem.htm", + "redir": "lsem" + }, + { + "title": "LEY del Servicio Militar", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsm.htm", + "redir": "lsm" + }, + { + "title": "LEY del Servicio Postal Mexicano", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lspm.htm", + "redir": "lspm" + }, + { + "title": "LEY del Servicio Profesional de Carrera en la Administración Pública Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lspcapf.htm", + "redir": "lspcapf" + }, + { + "title": "LEY del Servicio de Administración Tributaria", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsat.htm", + "redir": "lsat" + }, + { + "title": "LEY del Sistema Nacional de Información Estadística y Geográfica", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsnieg.htm", + "redir": "lsnieg" + }, + { + "title": "LEY del Sistema Público de Radiodifusión del Estado Mexicano", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsprem.htm", + "redir": "lsprem" + }, + { + "title": "LEY del Sistema de Horario en los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsheum.htm", + "redir": "lsheum" + }, + { + "title": "LEY en Favor de los Veteranos de la Revolución como Servidores del Estado", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfvrse.htm", + "redir": "lfvrse" + }, + { + "title": "LEY para Conservar la Neutralidad del País", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcnp.htm", + "redir": "lcnp" + }, + { + "title": "LEY para Determinar el Valor de la Unidad de Medida y Actualización", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldvuma.htm", + "redir": "ldvuma" + }, + { + "title": "LEY para Impulsar el Incremento Sostenido de la Productividad y la Competitividad de la Economía Nacional", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/liispcen.htm", + "redir": "liispcen" + }, + { + "title": "LEY para Regular las Actividades de las Sociedades Cooperativas de Ahorro y Préstamo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrascap.htm", + "redir": "lrascap" + }, + { + "title": "LEY para Regular las Agrupaciones Financieras", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lraf.htm", + "redir": "lraf" + }, + { + "title": "LEY para Regular las Instituciones de Tecnología Financiera", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lritf.htm", + "redir": "lritf" + }, + { + "title": "LEY para Regular las Sociedades de Información Crediticia", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrsic.htm", + "redir": "lrsic" + }, + { + "title": "LEY para el Desarrollo de la Competitividad de la Micro, Pequeña y Mediana Empresa", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldcmpme.htm", + "redir": "ldcmpme" + }, + { + "title": "LEY para el Diálogo, la Conciliación y la Paz Digna en Chiapas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldcpdch.htm", + "redir": "ldcpdch" + }, + { + "title": "LEY para el uso y protección de la denominación y del emblema de la Cruz Roja", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lupdecr.htm", + "redir": "lupdecr" + }, + { + "title": "LEY para la Comprobación, Ajuste y Cómputo de Servicios de la Armada de México", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcacsam.htm", + "redir": "lcacsam" + }, + { + "title": "LEY para la Comprobación, Ajuste y Cómputo de Servicios en el Ejército y Fuerza Aérea Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcacsefam.htm", + "redir": "lcacsefam" + }, + { + "title": "LEY para la Coordinación de la Educación Superior", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lces.htm", + "redir": "lces" + }, + { + "title": "LEY para la Depuración y Liquidación de Cuentas de la Hacienda Pública Federal", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldlchpf.htm", + "redir": "ldlchpf" + }, + { + "title": "LEY para la Protección de Personas Defensoras de Derechos Humanos y Periodistas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lppddhp.htm", + "redir": "lppddhp" + }, + { + "title": "LEY para la Transparencia y Ordenamiento de los Servicios Financieros", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ltosf.htm", + "redir": "ltosf" + }, + { + "title": "LEY que Aprueba la Adhesión de México al Convenio Constitutivo del Banco de Desarrollo del Caribe y su Ejecución", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lmccbdc.htm", + "redir": "lmccbdc" + }, + { + "title": "LEY que Crea el Fondo de Garantía y Fomento para la Agricultura, Ganadería y Avicultura", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lfgfaga.htm", + "redir": "lfgfaga" + }, + { + "title": "LEY que Crea la Agencia de Noticias del Estado Mexicano", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lanem.htm", + "redir": "lanem" + }, + { + "title": "LEY que Crea la Universidad del Ejército y Fuerza Aérea", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/luefa.htm", + "redir": "luefa" + }, + { + "title": "LEY que Declara Reservas Mineras Nacionales los Yacimientos de Uranio, Torio y las demás Substancias de las cuales se Obtengan Isótopos Hendibles que puedan Producir Energía Nuclear", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrmnyut.htm", + "redir": "lrmnyut" + }, + { + "title": "LEY que Establece Bases para la Ejecución en México, por el Poder Ejecutivo Federal, del Convenio Constitutivo de la Asociación Internacional de Fomento", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lccaif.htm", + "redir": "lccaif" + }, + { + "title": "LEY que Establece Bases para la Ejecución en México, por el Poder Ejecutivo Federal, del Convenio Constitutivo del Banco Interamericano de Desarrollo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lccbid.htm", + "redir": "lccbid" + }, + { + "title": "LEY que crea el Instituto Nacional de Bellas Artes y Literatura", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/linbal.htm", + "redir": "linbal" + }, + { + "title": "LEY que crea la Agencia Espacial Mexicana", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/laem.htm", + "redir": "laem" + }, + { + "title": "LEY que crea la Universidad Autónoma Chapingo", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/luach.htm", + "redir": "luach" + }, + { + "title": "LEY sobre Cámaras Agrícolas, que en lo sucesivo se denominarán Asociaciones Agrícolas", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lcaaa.htm", + "redir": "lcaaa" + }, + { + "title": "LEY sobre Delitos de Imprenta", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/ldi.htm", + "redir": "ldi" + }, + { + "title": "LEY sobre Elaboración y Venta de Café Tostado", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/levct.htm", + "redir": "levct" + }, + { + "title": "LEY sobre Refugiados, Protección Complementaria y Asilo Político", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lrpcap.htm", + "redir": "lrpcap" + }, + { + "title": "LEY sobre el Escudo, la Bandera y el Himno Nacionales", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lebhn.htm", + "redir": "lebhn" + }, + { + "title": "LEY sobre la Celebración de Tratados", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/lsct.htm", + "redir": "lsct" + }, + { + "title": "ORDENANZA General de la Armada", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/oga.htm", + "redir": "oga" + }, + { + "title": "PRESUPUESTO de Egresos de la Federación para el Ejercicio Fiscal 2021", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/pef_2021.htm", + "redir": "pef_2021" + }, + { + "title": "REGLAMENTO de la Cámara de Diputados", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/reg_diputados.htm", + "redir": "reg_diputados" + }, + { + "title": "REGLAMENTO del Senado de la República", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/reg_senado.htm", + "redir": "reg_senado" + }, + { + "title": "REGLAMENTO para el Gobierno Interior del Congreso General de los Estados Unidos Mexicanos", + "url": "http://www.diputados.gob.mx/LeyesBiblio/ref/rgic.htm", + "redir": "rgic" + } +]
\ No newline at end of file diff --git a/scrapers/mx.py b/scrapers/mx.py new file mode 100755 index 0000000..ec6a274 --- /dev/null +++ b/scrapers/mx.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python3 +import json +import re +import urllib.parse + +import lxml.html +import requests + +URL = 'http://www.diputados.gob.mx/LeyesBiblio/index.htm' + +req = requests.get(URL) +root = lxml.html.fromstring(req.text) +# /following-sibling::span/table +table = root.xpath(".//*[contains(text(), 'LEYES FEDERALES VIGENTES')]/ancestor::table[1]/following::table[1]")[0] + +laws = [] + +for link in table.iterfind('.//tr//td[2]//a'): + title = lxml.html.tostring(link, method='text', encoding='unicode') + href = link.get('href') + laws.append(dict( + title = re.sub(r'\s+', ' ', title.strip()), + url = urllib.parse.urljoin(URL, link.get('href')), + redir = re.match('ref/(.*)\.htm', href).group(1) + )) + +with open('laws/mx.json', 'w') as f: + json.dump(sorted(laws, key=lambda l: l['title']), f, indent=2, ensure_ascii=False)
\ No newline at end of file diff --git a/views/search.html b/views/search.html index 5cf0483..9373375 100644 --- a/views/search.html +++ b/views/search.html @@ -8,15 +8,22 @@ <body> <a href="//{{.Domain}}"><img height=140 class=logo src="//{{.Domain}}/assets/logo.svg"></a> <h1>National Law of {{.Country.Name}}</h1> + {{if not .Country.HasPlaceholder}} + <p><big><a href="{{.Country.SearchURL}}">{{.Country.SearchURL}}</a></big></p> + + {{if not .HasJSONLaws}} + (No search form here because the search isn't linkable.) + {{end}} + {{end}} {{if .Country.HasPlaceholder}} - <form autocomplete="off"> - <input id=search name=q autofocus {{if .HasJSONLaws}}data-json{{end}}> + <form> + {{end}} + {{if or .Country.HasPlaceholder .HasJSONLaws}} + <input id=search name=q autocomplete="off" autofocus {{if .HasJSONLaws}}data-json{{end}}> <ul id=suggestions></ul> - </form> - {{else}} - <p><big><a href="{{.Country.SearchURL}}">{{.Country.SearchURL}}</a></big></p> - - (No search form here because the search isn't linkable.) + {{end}} + {{if .Country.HasPlaceholder}} + </form> {{end}} <script src="//{{.Domain}}/assets/script.js"></script> </body> |