Compare commits
3
Commits
03f6a512ae
...
d4c881e343
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4c881e343 | ||
|
|
b5f960c8d8 | ||
|
|
97ee74d4d6 |
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# Skills
|
||||
|
||||
## Write
|
||||
|
||||
Guidelines for writing and maintaining project documentation.
|
||||
|
||||
Location: `.agents/skills/write_documentation/SKILL.md`
|
||||
|
||||
## Record Evidence
|
||||
|
||||
Guidelines for collecting and recording evidence.
|
||||
|
||||
Location: `.agents/skills/record_evidence/SKILL.md`
|
||||
@@ -0,0 +1,73 @@
|
||||
# Record Evidence
|
||||
|
||||
## Objective
|
||||
|
||||
Convert observable findings from research artifacts into traceable evidence records.
|
||||
|
||||
## Rules
|
||||
|
||||
1. Record only what the available evidence directly supports.
|
||||
2. Separate observations from interpretations.
|
||||
3. Scope negative findings to the inspection performed.
|
||||
4. Every observation must reference its supporting evidence.
|
||||
5. Do not infer infrastructure, behavior, intent, or business facts that were not observed.
|
||||
6. Preserve the original evidence without modifying it to support an interpretation.
|
||||
7. Assign confidence based on the strength and completeness of the evidence.
|
||||
8. Record unresolved questions when additional information is required.
|
||||
9. Do not propose solutions while recording evidence.
|
||||
10. Do not duplicate the same observation across multiple evidence records.
|
||||
|
||||
## Observation discipline
|
||||
|
||||
Prefer:
|
||||
|
||||
> No se encontraron referencias a Google Analytics en el HTML de la portada inspeccionada.
|
||||
|
||||
Avoid:
|
||||
|
||||
> El sitio no utiliza Google Analytics.
|
||||
|
||||
Negative observations must describe the scope of the inspection.
|
||||
|
||||
## Evidence provenance
|
||||
|
||||
Every record should identify:
|
||||
|
||||
- Source artifact
|
||||
- Relevant URL, file, or resource
|
||||
- Capture date when applicable
|
||||
- Tool or method used when applicable
|
||||
|
||||
## Interpretation
|
||||
|
||||
Interpretations may explain potential implications, but must not introduce unsupported facts.
|
||||
|
||||
Prefer:
|
||||
|
||||
> La estructura observada puede dificultar la comunicación de las líneas de servicio desde la portada.
|
||||
|
||||
Avoid:
|
||||
|
||||
> La empresa diseñó el sitio como un blog.
|
||||
|
||||
The second statement assigns intent that the evidence does not establish.
|
||||
|
||||
## Confidence
|
||||
|
||||
Use:
|
||||
|
||||
- **Alta:** Directly observable and unambiguous evidence.
|
||||
- **Media:** Evidence supports the interpretation but relevant context is missing.
|
||||
- **Baja:** Preliminary indication requiring additional verification.
|
||||
|
||||
## Before recording
|
||||
|
||||
Ask:
|
||||
|
||||
- What can I observe directly?
|
||||
- What evidence demonstrates this?
|
||||
- Am I asserting something that the evidence does not measure?
|
||||
- Is the absence limited to the scope of the inspection?
|
||||
- What information remains unconfirmed?
|
||||
- Am I recording evidence or proposing a solution?
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
# Documentation Style
|
||||
|
||||
## Objective
|
||||
|
||||
Keep project documentation concise and factual.
|
||||
|
||||
## Rules
|
||||
|
||||
1. State the subject directly.
|
||||
2. Prefer one sentence over two when meaning is preserved.
|
||||
3. Remove introductory justification.
|
||||
4. Remove promotional adjectives.
|
||||
5. Avoid rhetorical contrasts such as "not merely X, but Y".
|
||||
6. Use terminology consistently.
|
||||
7. Preserve technical identifiers in their conventional form.
|
||||
|
||||
## Before writing
|
||||
|
||||
Ask:
|
||||
- Is this information necessary?
|
||||
- Is this sentence describing or persuading?
|
||||
- Can the same information be expressed more directly?
|
||||
|
||||
## Example
|
||||
|
||||
Avoid:
|
||||
|
||||
> Este proyecto no es únicamente un repositorio de notas...
|
||||
|
||||
Prefer:
|
||||
|
||||
> Este repositorio contiene la investigación de presencia digital de AMC Solutions.
|
||||
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
# Python & Tooling
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
.venv/
|
||||
venv/
|
||||
ENV/
|
||||
.ruff_cache/
|
||||
|
||||
# Graphify generated output & caches
|
||||
graphify-out/
|
||||
*.bak
|
||||
|
||||
# Scratch & Raw dumps
|
||||
tools/raw/*
|
||||
!tools/raw/.gitkeep
|
||||
*.tmp
|
||||
*.log
|
||||
|
||||
# System
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Obsidian local workspace state
|
||||
.obsidian/workspace.json
|
||||
.obsidian/workspace-mobile.json
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"cssTheme": "Primary",
|
||||
"theme": "moonstone"
|
||||
}
|
||||
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"file-explorer": true,
|
||||
"global-search": true,
|
||||
"switcher": true,
|
||||
"graph": true,
|
||||
"backlink": true,
|
||||
"canvas": true,
|
||||
"outgoing-link": true,
|
||||
"tag-pane": true,
|
||||
"footnotes": false,
|
||||
"properties": true,
|
||||
"page-preview": true,
|
||||
"daily-notes": true,
|
||||
"templates": true,
|
||||
"note-composer": true,
|
||||
"command-palette": true,
|
||||
"slash-command": false,
|
||||
"editor-status": true,
|
||||
"bookmarks": true,
|
||||
"zk-prefixer": false,
|
||||
"random-note": false,
|
||||
"outline": true,
|
||||
"word-count": true,
|
||||
"slides": false,
|
||||
"audio-recorder": false,
|
||||
"workspaces": false,
|
||||
"file-recovery": true,
|
||||
"publish": false,
|
||||
"sync": true,
|
||||
"bases": true,
|
||||
"webviewer": false
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "Primary",
|
||||
"version": "2.10.0",
|
||||
"minAppVersion": "1.4.0",
|
||||
"author": "Cecilia May",
|
||||
"fundingUrl": {
|
||||
"Ko-fi": "https://ko-fi.com/ceciliamay"
|
||||
}
|
||||
}
|
||||
Vendored
+3878
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,122 @@
|
||||
# Agent Instructions
|
||||
|
||||
## Role
|
||||
|
||||
Act as a digital presence researcher with expertise in SEO, web
|
||||
architecture, UX, and technical web systems.
|
||||
|
||||
Your role is to:
|
||||
|
||||
- Inspect AMC Solutions' digital presence.
|
||||
- Collect and organize empirical evidence.
|
||||
- Distinguish observations from interpretations and hypotheses.
|
||||
- Identify gaps that require validation with AMC.
|
||||
- Analyze evidence only after it has been recorded.
|
||||
- Produce recommendations only when supported by the accumulated evidence.
|
||||
|
||||
Do not assume the role of AMC's marketing agency.
|
||||
Do not optimize for persuasion.
|
||||
Do not recommend solutions before the relevant problem has been established.
|
||||
|
||||
---
|
||||
## Current Scope
|
||||
|
||||
Do not redesign the website, recommend technologies, or propose solutions before the relevant evidence has been collected and analyzed.
|
||||
|
||||
---
|
||||
|
||||
## Decision Boundary
|
||||
|
||||
During discovery, prioritize establishing what is true over deciding what
|
||||
should be done.
|
||||
|
||||
Recommendations must be traceable to recorded evidence and analysis.
|
||||
|
||||
When evidence is insufficient, identify the uncertainty instead of
|
||||
compensating with assumptions.
|
||||
|
||||
---
|
||||
## Agent Resources
|
||||
|
||||
Repository-specific skills are located in `.agents/skills/`.
|
||||
|
||||
See `.agents/SKILLS.md` for the available skills and their purpose.
|
||||
|
||||
|
||||
---
|
||||
## Show Me
|
||||
|
||||
For every significant research, analysis, or implementation step, report:
|
||||
|
||||
- **What:** what was done.
|
||||
- **Why:** why the step was necessary.
|
||||
- **How:** how it was performed.
|
||||
- **Reproduce:** how the result can be reproduced.
|
||||
|
||||
Keep reports concise. Do not report routine internal actions unless they affect
|
||||
the result, methodology, or reproducibility.
|
||||
|
||||
---
|
||||
## Language
|
||||
|
||||
Write project documentation in Spanish.
|
||||
|
||||
Keep technical identifiers in their conventional form:
|
||||
SEO, UX, UI, HTTP, DNS, CMS, JSON-LD, robots.txt, sitemap.xml, etc.
|
||||
|
||||
---
|
||||
## Documentation style
|
||||
|
||||
Use concise, factual language.
|
||||
|
||||
Prefer:
|
||||
- direct statements
|
||||
- short paragraphs
|
||||
- descriptive headings
|
||||
- concrete terminology
|
||||
|
||||
Avoid:
|
||||
- promotional language
|
||||
- unnecessary adjectives
|
||||
- rhetorical introductions
|
||||
- defensive explanations
|
||||
- claims about quality without evidence
|
||||
- explaining why the repository or methodology is valuable
|
||||
|
||||
Describe what something is and how it works. Do not sell it.
|
||||
|
||||
---
|
||||
## Research discipline
|
||||
|
||||
Distinguish clearly between:
|
||||
|
||||
- Facts (Hechos)
|
||||
- Evidence (Evidencia)
|
||||
- Interpretations (Interpretaciones)
|
||||
- Hyphoteses (Hipótesis)
|
||||
- Open Questions (Preguntas abiertas)
|
||||
|
||||
Do not present an interpretation as an observation.
|
||||
|
||||
Do not invent missing information.
|
||||
|
||||
---
|
||||
## About Evidence
|
||||
|
||||
- Observations must reference their supporting evidence.
|
||||
- Do not modify evidence to fit an interpretation.
|
||||
- Interpretations must not assert facts that the recorded evidence does not establish.
|
||||
- Negative findings must be scoped to the inspection performed.
|
||||
|
||||
|
||||
---
|
||||
## Coding and Automation Standards
|
||||
|
||||
- All scripts must pass the project's configured linting and static-analysis checks.
|
||||
- Changes must not introduce linting or static-analysis violations.
|
||||
- Non-trivial behavior should have tests.
|
||||
- Use inline documentation when intent is not obvious from the code.
|
||||
- Document non-obvious workflows, prerequisites, and usage in Markdown.
|
||||
- Keep scripts focused and avoid unnecessary abstractions or dependencies.
|
||||
- Handle expected errors explicitly.
|
||||
- Keep CLI behavior predictable and documented.
|
||||
@@ -0,0 +1,24 @@
|
||||
This is free and unencumbered software released into the public domain.
|
||||
|
||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||
distribute this software, either in source code form or as a compiled
|
||||
binary, for any purpose, commercial or non-commercial, and by any
|
||||
means.
|
||||
|
||||
In jurisdictions that recognize copyright laws, the author or authors
|
||||
of this software dedicate any and all copyright interest in the
|
||||
software to the public domain. We make this dedication for the benefit
|
||||
of the public at large and to the detriment of our heirs and
|
||||
successors. We intend this dedication to be an overt act of
|
||||
relinquishment in perpetuity of all present and future rights to this
|
||||
software under copyright law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
For more information, please refer to <https://unlicense.org>
|
||||
@@ -1 +1,65 @@
|
||||
# amc-solutions-seo
|
||||
# AMC Solutions — Investigación de Presencia Digital
|
||||
|
||||
Investigación de presencia digital de AMC Solutions Colombia ([amcsolutionscolombia.com](https://www.amcsolutionscolombia.com/)) y herramientas de inspección técnica.
|
||||
|
||||
---
|
||||
|
||||
## Estructura
|
||||
|
||||
- `context/`: Antecedentes, supuestos, hipótesis e incógnitas previas a la investigación.
|
||||
- `evidence/`: Registros empíricos reproducibles (capturas de red, código y observaciones `[OBS-###]`).
|
||||
- `analysis/`: Interpretación de evidencias (UX, SEO, posicionamiento).
|
||||
- `output/`: Entregables e informes para AMC.
|
||||
- `tools/`: Scripts de inspección y volcados técnicos.
|
||||
|
||||
---
|
||||
|
||||
## Formato de Evidencia
|
||||
|
||||
Las observaciones registradas en `evidence/` utilizan la siguiente plantilla:
|
||||
|
||||
```markdown
|
||||
### [OBS-001] Título
|
||||
- **Categoría:** Arquitectura | Contenido | Técnico | UX | Búsqueda
|
||||
- **Observación:** Hecho observable.
|
||||
- **Evidencia:** Archivo, encabezado HTTP, línea de código o captura.
|
||||
- **Interpretación:** Implicación potencial.
|
||||
- **Confianza:** Baja | Media | Alta
|
||||
- **Pregunta Abierta:** Aspecto por validar con AMC.
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Mapa de Directorios
|
||||
|
||||
```text
|
||||
amc-solutions-seo/
|
||||
├── README.md # Descripción del espacio de investigación y metodología
|
||||
├── LICENSE # The Unlicense
|
||||
├── .gitignore # Exclusión de volcados temporales, cachés y estado local
|
||||
│
|
||||
├── context/
|
||||
│ ├── project-brief.md # Alcance, equipo y objetivos de la investigación
|
||||
│ ├── known-unknowns.md # Hechos, afirmaciones, supuestos e incógnitas
|
||||
│ ├── hypotheses.md # Hipótesis de negocio y cadena de valor
|
||||
│ └── questions-for-amc.md # Banco de preguntas para reunión con AMC
|
||||
│
|
||||
├── evidence/
|
||||
│ ├── website/ # Capturas de páginas, inventario de contenido y navegación
|
||||
│ ├── technical/ # Registros HTTP, DNS, CMS, robots.txt, sitemaps y metadatos
|
||||
│ └── external/ # Presencia en Google Business, LinkedIn y directorios
|
||||
│
|
||||
├── analysis/
|
||||
│ ├── ux.md # Arquitectura de información, rutas de usuario y conversión
|
||||
│ ├── seo.md # Descubribilidad orgánica y técnica
|
||||
│ ├── search-landscape.md # Intención de búsqueda y viabilidad de Google Ads
|
||||
│ └── positioning.md # Posicionamiento de mercado observado vs. propuesto
|
||||
│
|
||||
├── output/
|
||||
│ └── discovery-report.md # Informe de síntesis previo a la propuesta formal
|
||||
│
|
||||
└── tools/
|
||||
├── README.md # Guía de herramientas y restricciones de ingeniería
|
||||
├── inspect_site.py # Script de reconocimiento HTTP y extracción de metadatos
|
||||
└── raw/ # Volcados sin procesar por marca temporal (ignorado en git)
|
||||
```
|
||||
Whitespace-only changes.
@@ -0,0 +1,18 @@
|
||||
# Hipótesis
|
||||
|
||||
## [HYP-001] Cadena de Valor y Pipeline Operativo de AMC
|
||||
- **Estado:** No validado
|
||||
- **Hipótesis:** La oferta comercial de AMC Solutions sigue la secuencia de fases de un proyecto minero:
|
||||
$$\text{Cliente} \longrightarrow \text{Permiso Ambiental} \longrightarrow \text{Geología} \longrightarrow \text{Ingeniería de Minas} \longrightarrow \text{Implementación Operativa}$$
|
||||
- **Fundamento:** Dinámica regulatoria y operativa de la minería en el departamento del Cesar (Valledupar).
|
||||
- **Implicación para el sitio web:** La navegación y arquitectura de información deben estructurarse por etapa de desarrollo del proyecto minero del cliente, no como un listado plano de servicios.
|
||||
- **Criterio de validación:** Confirmar en la reunión si los contratos cubren este ciclo integral o demandas puntuales de trámites aislados.
|
||||
|
||||
---
|
||||
|
||||
## [HYP-002] Naturaleza B2B y Relevancia de Autoridad Local
|
||||
- **Estado:** No validado
|
||||
- **Hipótesis:** La contratación en este sector responde a relaciones **B2B** de ciclo medio-largo donde la cercanía operativa y el conocimiento regulatorio regional (ej. Corpocesar / ANLA) son determinantes.
|
||||
- **Fundamento:** Modelo de contratación habitual en consultoría minero-ambiental en Colombia.
|
||||
- **Implicación para el sitio web:** El sitio web opera como validador de solvencia y autoridad técnica. La optimización para Google Business Profile y reputación institucional tiene mayor prioridad que la captación por búsqueda genérica masiva.
|
||||
- **Criterio de validación:** Determinar qué proporción de clientes consulta credenciales técnicas en el sitio web antes de formalizar contrato.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Certezas e Incógnitas
|
||||
|
||||
## Hechos
|
||||
- Sitio web publicado y accesible: [AMC Solutions Colombia](https://www.amcsolutionscolombia.com)
|
||||
- Proceso abierto por la empresa para revisar y rediseñar su presencia digital.
|
||||
- Equipo interdisciplinario asignado (contenidos, diseño, marketing, desarrollo).
|
||||
|
||||
## Afirmaciones de Interesados
|
||||
- El diseño visual y la experiencia de usuario actuales no reflejan la calidad de la empresa.
|
||||
- El posicionamiento SEO es una prioridad estratégica.
|
||||
- Existe interés en explorar inversión en Google Ads.
|
||||
- La empresa requiere proyectar mayor solidez institucional.
|
||||
|
||||
## Supuestos de Trabajo
|
||||
- El sitio web debe operar como validador de solvencia técnica y captación B2B, no como blog o catálogo pasivo.
|
||||
- Mejorar el posicionamiento requiere reestructurar la arquitectura de información según la intención de búsqueda del sector.
|
||||
- Invertir en Google Ads antes de resolver la claridad del mensaje y la conversión en el sitio resulta ineficiente.
|
||||
|
||||
## Incógnitas
|
||||
|
||||
### Negocio y Operación
|
||||
- ¿Cuáles 2 o 3 servicios generan el 80% de los ingresos reales?
|
||||
- ¿Qué líneas de servicio son prioritarias para los próximos 12–18 meses?
|
||||
- ¿Existen servicios listados en la web que ya no se prestan?
|
||||
- ¿Quién toma la decisión de contratación en las empresas cliente (gerencias, directores ambientales, ingenieros, abogados)?
|
||||
- ¿Cuál es la cobertura territorial real (Valledupar / Cesar, Región Caribe, nacional, internacional)?
|
||||
- ¿Cuál es el diferencial comprobable frente a la competencia de consultoría minero-ambiental?
|
||||
|
||||
### Adquisición y Ventas
|
||||
- ¿Cómo llegan hoy los clientes a AMC (referidos, licitaciones privadas, gremios, búsqueda orgánica)?
|
||||
- ¿Qué porcentaje de contratos proviene actualmente del canal digital?
|
||||
- ¿Qué constituye un prospecto calificado (mensaje por WhatsApp, pliego licitatorio por correo, llamada)?
|
||||
- ¿Cuánto dura el ciclo de venta desde el primer contacto hasta la firma de contrato?
|
||||
|
||||
### Infraestructura Web
|
||||
- ¿Qué plataforma sustenta el sitio y quién gestiona accesos a hosting, CMS y DNS?
|
||||
- ¿Existen herramientas de analítica configuradas (GA4, Search Console) y datos históricos de tráfico?
|
||||
- ¿Existe seguimiento de conversiones (clics a WhatsApp, formularios, llamadas)?
|
||||
- ¿Cuáles páginas concentran el mayor tráfico actualmente?
|
||||
|
||||
### Marca
|
||||
- ¿Cuál es el mensaje central y los valores no negociables de la empresa?
|
||||
- ¿Cuál es el tono de comunicación deseado (técnico/institucional, de vanguardia, cercano)?
|
||||
- ¿Qué sitios web del sector consideran referentes positivos?
|
||||
|
||||
### Alcance Comercial
|
||||
- ¿Cuál es el presupuesto y cronograma previsto por AMC?
|
||||
- ¿Se busca una entrega única de rediseño o un acompañamiento continuo (SEO, contenidos, pauta)?
|
||||
- ¿Quién mantendrá el sitio y atenderá los canales digitales tras el lanzamiento?
|
||||
@@ -0,0 +1,40 @@
|
||||
# AMC Solutions — Descubrimiento Digital
|
||||
|
||||
## Propósito
|
||||
Diagnóstico de la presencia digital actual de AMC Solutions Colombia previo a una propuesta de rediseño, SEO y captación.
|
||||
|
||||
## Situación Actual
|
||||
AMC Solutions Colombia es una empresa de ingeniería y consultoría en proceso de consolidación de marca. El equipo de trabajo integra capacidades en contenidos, diseño UX/UI, marketing digital y software.
|
||||
|
||||
Intereses manifestados por la empresa:
|
||||
- Rediseño del sitio web
|
||||
- Claridad en la propuesta de valor
|
||||
- Optimización de experiencia de usuario (UX)
|
||||
- Posicionamiento orgánico en motores de búsqueda (SEO)
|
||||
- Evaluación de pauta digital (Google Ads)
|
||||
|
||||
## Información Faltante
|
||||
- Servicios principales frente a secundarios o descontinuados
|
||||
- Margen y rentabilidad por línea de servicio
|
||||
- Perfil del cliente ideal y decisor de compra
|
||||
- Cobertura geográfica real (Cesar, Región Caribe, nacional o internacional)
|
||||
- Canales actuales de captación y tasa de cierre
|
||||
- Métricas históricas de analítica web (Google Analytics y Search Console)
|
||||
- Historial o resultados de campañas previas en Google Ads
|
||||
|
||||
## Pregunta de Investigación
|
||||
> ¿Qué cambios requiere la presencia digital de AMC Solutions Colombia para operar como canal de adquisición y posicionamiento?
|
||||
|
||||
## Alcance
|
||||
- **Sitio web actual:** Inventario de contenidos, navegación y llamados a la acción.
|
||||
- **Implementación técnica:** Código fuente, encabezados HTTP, tecnologías, tiempos de respuesta y rastreabilidad.
|
||||
- **Arquitectura de información y UX:** Rutas de navegación, claridad del mensaje y puntos de contacto.
|
||||
- **Visibilidad y búsqueda:** Metadatos, datos estructurados y preparación para motores de búsqueda tradicionales y agénticos.
|
||||
- **Presencia externa:** Google Business Profile, LinkedIn y directorios sectoriales.
|
||||
|
||||
## Fuera de Alcance
|
||||
- Rediseño visual de interfaces o maquetación.
|
||||
- Selección o migración de CMS.
|
||||
- Redacción de textos comerciales definitivos (copywriting final).
|
||||
- Asignación de presupuesto publicitario.
|
||||
- Compromisos de ranking en motores de búsqueda.
|
||||
@@ -0,0 +1,58 @@
|
||||
# Preguntas para AMC
|
||||
|
||||
## Ejes de Conversación
|
||||
|
||||
```text
|
||||
1. ¿Qué vende AMC en la práctica?
|
||||
│
|
||||
▼
|
||||
2. ¿Quién lo compra y quién decide?
|
||||
│
|
||||
▼
|
||||
3. ¿Por qué eligen a AMC frente a otros?
|
||||
│
|
||||
▼
|
||||
4. ¿Cómo descubren o llegan hoy a AMC?
|
||||
│
|
||||
▼
|
||||
5. ¿Hacia dónde y en qué servicios quieren crecer?
|
||||
│
|
||||
▼
|
||||
6. ¿Qué función concreta debe cumplir el sitio web?
|
||||
│
|
||||
▼
|
||||
7. ¿Cómo definen el éxito del proyecto a 6 meses?
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Preguntas por Tema
|
||||
|
||||
### Modelo de Negocio y Servicios
|
||||
1. **Facturación (80/20):** ¿Cuáles 2 o 3 servicios representan el 80% del flujo de caja actual (trámites ante Corpocesar/ANLA, geología, diseño de mina, interventoría)?
|
||||
2. **Prioridades de expansión:** ¿Qué servicios buscan expandir durante los próximos 12–18 meses? ¿Existen servicios en la web actual que ya no ofrecen?
|
||||
3. **Modalidad de contratación:** ¿Los clientes contratan acompañamiento integral por fases del proyecto o servicios puntuales para resolver trámites regulatorios aislados?
|
||||
|
||||
### Clientes y Proceso de Compra
|
||||
1. **Perfil del decisor:** En el cliente típico, ¿quién toma la decisión final (titulares de concesión, directores de sostenibilidad, asesores jurídicos, ingenieros jefes)?
|
||||
2. **Ámbito geográfico:** ¿El mercado activo está en Valledupar y el Cesar, en la Región Caribe, a nivel nacional o con empresas extranjeras?
|
||||
3. **Ciclo de venta:** ¿Cuánto tiempo transcurre entre el primer contacto y la firma del contrato?
|
||||
|
||||
### Ventas y Captación Comercial
|
||||
1. **Prospecto calificado:** ¿Qué define una oportunidad comercial real para AMC (mensaje por WhatsApp, solicitud formal de cotización, llamada)?
|
||||
2. **Rol actual del sitio web:** ¿Ha recibido AMC solicitudes comerciales efectivas a través del sitio web actual?
|
||||
|
||||
### Diferencial y Percepción de Marca
|
||||
1. **Factor decisivo:** ¿Por qué un cliente elige a AMC frente a otra firma de ingeniería o consultoría (tiempo de respuesta, conocimiento del territorio local, solvencia técnica, relaciones institucionales)?
|
||||
2. **Tono y mensaje:** ¿Qué impresión debe transmitir el sitio web en una primera visita (institucional y técnico, ágil e innovador, aliado estratégico cercano)?
|
||||
3. **Referencias sectoriales:** ¿Qué 2 o 3 sitios web del sector (en Colombia o internacionalmente) consideran referentes positivos de diseño o autoridad?
|
||||
|
||||
### Infraestructura Técnica y Datos
|
||||
1. **Accesos:** ¿Quién desarrolló el sitio web actual? ¿Dispone AMC de credenciales de acceso a CMS, hosting y DNS?
|
||||
2. **Analítica:** ¿Está configurado Google Analytics 4, Search Console o Tag Manager? ¿Es posible revisar el historial de consultas y visitas?
|
||||
3. **Historial de pauta:** ¿Ha realizado AMC campañas en Google Ads o redes sociales en el pasado? Si fue así, ¿cuáles fueron los resultados?
|
||||
|
||||
### Alcance y Continuidad del Proyecto
|
||||
1. **Criterios de éxito:** ¿Qué resultado concreto a 6 meses del lanzamiento evidenciará que el proyecto cumplió su objetivo?
|
||||
2. **Mantenimiento y contenidos:** Tras el lanzamiento, ¿quién asumirá la actualización de contenidos y la atención de solicitudes entrantes?
|
||||
3. **Plazos y presupuesto:** ¿Qué marco temporal y nivel de inversión contempla la empresa para esta iniciativa?
|
||||
Vendored
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,58 @@
|
||||
# Inspección Técnica Inicial — Plataforma y Encabezados
|
||||
|
||||
Registro de evidencia técnica obtenido mediante inspección automatizada de red.
|
||||
|
||||
- **Fecha de captura:** 2026-10-07 22:47:51 UTC
|
||||
- **URL objetivo:** `https://www.amcsolutionscolombia.com/`
|
||||
- **Herramienta:** `tools/inspect_site.py`
|
||||
- **Fuente cruda:** `tools/raw/2026-10-07_22-47-51/`
|
||||
|
||||
---
|
||||
|
||||
### [OBS-001] Servidor y CMS WordPress
|
||||
- **Categoría:** Técnico
|
||||
- **Observación:** La respuesta HTTP contiene las cabeceras `Server: Apache`, `X-Powered-By: PHP/8.2.34`, `Link: <https://www.amcsolutionscolombia.com/wp-json/>; rel="https://api.w.org/"` y la etiqueta `<meta name="generator" content="WordPress 7.1.3" />`.
|
||||
- **Evidencia:** `tools/raw/2026-10-07_22-47-51/headers.txt` (L10-12); `tools/raw/2026-10-07_22-47-51/homepage.html` (L26).
|
||||
- **Interpretación:** El sitio opera sobre WordPress y el servidor expone Apache y PHP 8.2.34.
|
||||
- **Confianza:** Alta
|
||||
- **Pregunta Abierta:** ¿Quién administra el hosting y las actualizaciones de la plataforma?
|
||||
|
||||
---
|
||||
|
||||
### [OBS-002] Tema Activo "Blogus"
|
||||
- **Categoría:** Arquitectura
|
||||
- **Observación:** Las hojas de estilo y scripts cargados en la portada provienen de `/wp-content/themes/blogus/`. Los enlaces de créditos en el pie de página apuntan a `https://themeansar.com` y `https://themeansar.com/free-themes/blogus/`.
|
||||
- **Evidencia:** `tools/raw/2026-10-07_22-47-51/homepage.html`; `tools/raw/2026-10-07_22-47-51/links.json` (L50-51).
|
||||
- **Interpretación:** Los recursos de presentación corresponden al tema "Blogus" de Themeansar. La disposición de la portada coincide con los componentes predeterminados de este tema para listados de entradas.
|
||||
- **Confianza:** Alta
|
||||
- **Pregunta Abierta:** ¿El sitio utiliza plantillas de página adicionales fuera de la portada?
|
||||
|
||||
---
|
||||
|
||||
### [OBS-003] Metadatos y Datos Estructurados en Portada
|
||||
- **Categoría:** Búsqueda
|
||||
- **Observación:** En el HTML de la portada inspeccionada no se encontraron etiquetas `<meta name="description">`, `<link rel="canonical">`, metadatos OpenGraph (`og:*`), tarjetas de Twitter (`twitter:*`) ni bloques `<script type="application/ld+json">`.
|
||||
- **Evidencia:** `tools/raw/2026-10-07_22-47-51/metadata.json` (L3-9).
|
||||
- **Interpretación:** La respuesta HTML inicial de la portada no proporciona descripciones, URL canónica ni marcado semántico explícito para motores de búsqueda o previsualizaciones en redes sociales.
|
||||
- **Confianza:** Alta
|
||||
- **Pregunta Abierta:** ¿Existen metadatos configurados en páginas interiores o mediante plugins no detectados en la portada?
|
||||
|
||||
---
|
||||
|
||||
### [OBS-004] Presencia de Scripts de Analítica en Portada
|
||||
- **Categoría:** Técnico
|
||||
- **Observación:** En el HTML de la portada inspeccionada no se encontraron referencias a Google Tag Manager (`gtm.js`), Google Analytics (`gtag.js`, `analytics.js`) ni Meta Pixel (`fbq`).
|
||||
- **Evidencia:** `tools/raw/2026-10-07_22-47-51/homepage.html` (búsqueda de cadenas de seguimiento arrojó 0 coincidencias).
|
||||
- **Interpretación:** La portada no ejecuta scripts de seguimiento del lado del cliente para las plataformas evaluadas en la muestra capturada.
|
||||
- **Confianza:** Alta
|
||||
- **Pregunta Abierta:** ¿Existe medición configurada del lado del servidor, a nivel de DNS o en una propiedad de Search Console/Analytics no vinculada en el HTML?
|
||||
|
||||
---
|
||||
|
||||
### [OBS-005] Contenido de robots.txt y Sitemaps
|
||||
- **Categoría:** Búsqueda
|
||||
- **Observación:** `https://www.amcsolutionscolombia.com/robots.txt` responde HTTP 200 y referencia `Sitemap: https://www.amcsolutionscolombia.com/wp-sitemap.xml`. La URL `/sitemap.xml` responde HTTP 200 entregando un índice XML de WordPress con sub-sitemaps para entradas (`posts-post-1.xml`), páginas (`posts-page-1.xml`), categorías (`taxonomies-category-1.xml`), etiquetas (`taxonomies-post_tag-1.xml`) y usuarios (`users-1.xml`).
|
||||
- **Evidencia:** `tools/raw/2026-10-07_22-47-51/robots.txt`; `tools/raw/2026-10-07_22-47-51/sitemap.xml`.
|
||||
- **Interpretación:** El sitemap expuesto por la instalación incluye índices para entradas, páginas, categorías, etiquetas y usuarios.
|
||||
- **Confianza:** Alta
|
||||
- **Pregunta Abierta:** ¿Este sitemap ha sido registrado en herramientas para webmasters (Google Search Console o Bing Webmaster Tools)?
|
||||
Whitespace-only changes.
@@ -0,0 +1,62 @@
|
||||
# Inventario Inicial de Portada y Enlaces Descubiertos
|
||||
|
||||
Registro de observaciones sobre la estructura de la página de inicio y el catálogo de URLs descubiertas.
|
||||
|
||||
- **Fecha de captura:** 2026-10-07 22:47:51 UTC
|
||||
- **URL objetivo:** `https://www.amcsolutionscolombia.com/`
|
||||
- **Herramienta:** `tools/inspect_site.py`
|
||||
- **Fuente cruda:** `tools/raw/2026-10-07_22-47-51/`
|
||||
|
||||
---
|
||||
|
||||
### [OBS-006] Encabezados de la Portada
|
||||
- **Categoría:** Arquitectura
|
||||
- **Observación:** El único elemento H1 contiene el texto `AMC SOLUTIONS COLOMBIA`. Los únicos elementos H2 identificados son: *"Paginación de entradas"*, *"NOTICIAS"*, *"Categorías"* y *"Te has perdido"*. No se detectaron elementos H3.
|
||||
- **Evidencia:** `tools/raw/2026-10-07_22-47-51/metadata.json` (L10-21).
|
||||
- **Interpretación:** La jerarquía de encabezados HTML de la portada no incluye denominaciones de servicios ni descriptores temáticos en niveles H1 o H2.
|
||||
- **Confianza:** Alta
|
||||
- **Pregunta Abierta:** ¿Qué contenido textual primario debe jerarquizarse en la portada según las prioridades de AMC?
|
||||
|
||||
---
|
||||
|
||||
### [OBS-007] Enlaces a Páginas de Servicios
|
||||
- **Categoría:** Contenido
|
||||
- **Observación:** En el HTML de la portada se extrajeron enlaces internos a 5 rutas bajo el prefijo `/servicios-*/`:
|
||||
- `/servicios-ambientales/`
|
||||
- `/servicios-de-topografia/`
|
||||
- `/servicios-empresariales/`
|
||||
- `/servicios-geologicos/`
|
||||
- `/servicios-mineros/`
|
||||
- **Evidencia:** `tools/raw/2026-10-07_22-47-51/links.json` (L40-44).
|
||||
- **Interpretación:** El sitio web contiene páginas dedicadas para 5 áreas de servicio accesibles mediante enlaces internos desde la portada.
|
||||
- **Confianza:** Alta
|
||||
- **Pregunta Abierta:** ¿Estas 5 áreas representan el portafolio comercial activo de AMC?
|
||||
|
||||
---
|
||||
|
||||
### [OBS-008] Enlaces a Páginas de Trámites Mineros
|
||||
- **Categoría:** Contenido
|
||||
- **Observación:** En el HTML de la portada se extrajeron enlaces internos a 9 rutas con términos de trámites y conceptos del sector minero colombiano:
|
||||
- `/banco-de-informacion-minera-bim/`
|
||||
- `/estandar-colombiano-de-recursos-y-reservas-ecrr/`
|
||||
- `/formalizacion-minera/`
|
||||
- `/formato-basico-minero-fbm-anm/`
|
||||
- `/liquidacion-de-regalias/`
|
||||
- `/propuestas-de-contrato-de-concesion-diferencial-a-mineros-de-pequena-escala/`
|
||||
- `/reconciliacion-de-recursos-y-reservas/`
|
||||
- `/registro-unico-de-comercializadores-de-minerales-rucom/`
|
||||
- `/solicitudes-de-formalizacion-minera/`
|
||||
- **Evidencia:** `tools/raw/2026-10-07_22-47-51/links.json` (L12, 21-24, 36, 38, 39, 45).
|
||||
- **Interpretación:** El sitio web aloja URLs específicas vinculadas a trámites y normativas de la Agencia Nacional de Minería (ANM).
|
||||
- **Confianza:** Alta
|
||||
- **Pregunta Abierta:** ¿El contenido de estas páginas describe servicios comerciales ofrecidos por la empresa o artículos divulgativos?
|
||||
|
||||
---
|
||||
|
||||
### [OBS-009] Enlaces de Contacto en la Portada
|
||||
- **Categoría:** UX
|
||||
- **Observación:** En el HTML de la portada inspeccionada no se encontraron enlaces con esquemas `tel:`, `mailto:`, enlaces a dominios de redes sociales (LinkedIn, Instagram, etc.) ni a la API de WhatsApp (`wa.me`, `whatsapp.com`). Se identificó un enlace interno a `/contacto/`.
|
||||
- **Evidencia:** `tools/raw/2026-10-07_22-47-51/links.json` (L20, L53-54).
|
||||
- **Interpretación:** La portada no ofrece mecanismos de interacción directa mediante enlaces HTML sin navegar hacia una ruta secundaria.
|
||||
- **Confianza:** Alta
|
||||
- **Pregunta Abierta:** ¿Existen datos de contacto visibles en la portada como texto estático o imagen sin enlace HTML asociado?
|
||||
Whitespace-only changes.
@@ -0,0 +1 @@
|
||||
3.13
|
||||
@@ -0,0 +1,33 @@
|
||||
# Herramientas de Inspección
|
||||
|
||||
Scripts de auditoría técnica para recopilar evidencia sobre la presencia digital de AMC Solutions.
|
||||
|
||||
## Estructura
|
||||
|
||||
- `tools/`: Scripts ejecutables de inspección técnica (`inspect_site.py`).
|
||||
- `tools/raw/`: Volcados de red y capturas HTML organizados por marca temporal (`tools/raw/<timestamp>/`). Ignorado en Git.
|
||||
|
||||
## Restricciones de Ingeniería
|
||||
|
||||
- **Reproducibilidad:** Las herramientas deben generar salidas estructuradas (`json`, `txt`, `html`) verificables de forma determinista.
|
||||
- **Trazabilidad:** Cada captura debe registrar marca temporal UTC, URL objetivo, códigos de estado HTTP y tiempos de respuesta.
|
||||
- **Minimalismo instrumental:** Priorizar biblioteca estándar de Python y utilidades de sistema (`curl`, `openssl`, `dig`) antes de introducir dependencias externas.
|
||||
- **Aislamiento de estado:** Los volcados crudos residen en `tools/raw/` y no deben mezclarse con las notas en Markdown ni comprometerse en Git.
|
||||
|
||||
## Entorno y Validación de Código
|
||||
|
||||
El entorno y las herramientas de validación se gestionan con `uv` dentro de `tools/`.
|
||||
|
||||
### Comandos de Inspección
|
||||
|
||||
Desde la raíz:
|
||||
|
||||
- Formateo: `uv run --directory tools ruff format .`
|
||||
- Linter: `uv run --directory tools ruff check .`
|
||||
- Verificación de tipos: `uv run --directory tools pyright`
|
||||
|
||||
Desde `tools/`:
|
||||
|
||||
- Formateo: `uv run ruff format .`
|
||||
- Linter: `uv run ruff check .`
|
||||
- Verificación de tipos: `uv run pyright`
|
||||
Executable
+397
@@ -0,0 +1,397 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
tools/inspect_site.py
|
||||
|
||||
Reconocimiento HTTP inicial y extracción de metadatos para AMC Solutions.
|
||||
Descarga y estructura evidencias crudas en:
|
||||
tools/raw/<timestamp>/
|
||||
├── headers.txt
|
||||
├── homepage.html
|
||||
├── robots.txt
|
||||
├── sitemap.xml
|
||||
├── links.json
|
||||
├── metadata.json
|
||||
└── summary.json
|
||||
"""
|
||||
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import ssl
|
||||
import sys
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
from datetime import UTC, datetime
|
||||
|
||||
USER_AGENT = (
|
||||
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 "
|
||||
"(KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
|
||||
)
|
||||
|
||||
|
||||
class RedirectTracker(urllib.request.HTTPRedirectHandler):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.chain = []
|
||||
|
||||
def redirect_request(self, req, fp, code, msg, headers, newurl):
|
||||
self.chain.append(
|
||||
{
|
||||
"status": code,
|
||||
"message": msg,
|
||||
"from_url": req.full_url,
|
||||
"to_url": newurl,
|
||||
"headers": dict(headers.items()),
|
||||
}
|
||||
)
|
||||
return super().redirect_request(req, fp, code, msg, headers, newurl)
|
||||
|
||||
|
||||
def fetch_url(url, timeout=20):
|
||||
tracker = RedirectTracker()
|
||||
ctx = ssl.create_default_context()
|
||||
opener = urllib.request.build_opener(
|
||||
tracker, urllib.request.HTTPSHandler(context=ctx)
|
||||
)
|
||||
req = urllib.request.Request(url, headers={"User-Agent": USER_AGENT})
|
||||
|
||||
start_time = time.time()
|
||||
try:
|
||||
with opener.open(req, timeout=timeout) as resp:
|
||||
elapsed_ms = int((time.time() - start_time) * 1000)
|
||||
body = resp.read()
|
||||
final_url = resp.geturl()
|
||||
status = resp.status
|
||||
headers = dict(resp.headers.items())
|
||||
return {
|
||||
"ok": True,
|
||||
"status": status,
|
||||
"final_url": final_url,
|
||||
"headers": headers,
|
||||
"redirect_chain": tracker.chain,
|
||||
"body": body,
|
||||
"elapsed_ms": elapsed_ms,
|
||||
"error": None,
|
||||
}
|
||||
except urllib.error.HTTPError as e:
|
||||
elapsed_ms = int((time.time() - start_time) * 1000)
|
||||
body = e.read() if hasattr(e, "read") else b""
|
||||
return {
|
||||
"ok": False,
|
||||
"status": e.code,
|
||||
"final_url": url,
|
||||
"headers": dict(e.headers.items()) if hasattr(e, "headers") else {},
|
||||
"redirect_chain": tracker.chain,
|
||||
"body": body,
|
||||
"elapsed_ms": elapsed_ms,
|
||||
"error": f"HTTPError {e.code}: {e.reason}",
|
||||
}
|
||||
except Exception as e:
|
||||
elapsed_ms = int((time.time() - start_time) * 1000)
|
||||
return {
|
||||
"ok": False,
|
||||
"status": None,
|
||||
"final_url": url,
|
||||
"headers": {},
|
||||
"redirect_chain": tracker.chain,
|
||||
"body": b"",
|
||||
"elapsed_ms": elapsed_ms,
|
||||
"error": str(e),
|
||||
}
|
||||
|
||||
|
||||
def parse_html_metadata(html_text, base_url):
|
||||
meta = {
|
||||
"title": None,
|
||||
"description": None,
|
||||
"canonical": None,
|
||||
"robots": None,
|
||||
"generator": None,
|
||||
"opengraph": {},
|
||||
"twitter": {},
|
||||
"json_ld": [],
|
||||
"headings": {"h1": [], "h2": [], "h3": []},
|
||||
"cms_signals": [],
|
||||
}
|
||||
|
||||
# Title
|
||||
t_match = re.search(
|
||||
r"<title[^>]*>(.*?)</title>", html_text, re.IGNORECASE | re.DOTALL
|
||||
)
|
||||
if t_match:
|
||||
meta["title"] = t_match.group(1).strip()
|
||||
|
||||
# Meta tags
|
||||
for tag in re.finditer(r"<meta\s+([^>]+)>", html_text, re.IGNORECASE):
|
||||
attrs = dict(
|
||||
re.findall(r'([a-zA-Z0-9_\-:]+)=["\']([^"\']*)["\']', tag.group(1))
|
||||
)
|
||||
name = attrs.get("name", "").lower()
|
||||
prop = attrs.get("property", "").lower()
|
||||
content = attrs.get("content", "")
|
||||
|
||||
if name == "description":
|
||||
meta["description"] = content
|
||||
elif name == "robots":
|
||||
meta["robots"] = content
|
||||
elif name == "generator":
|
||||
meta["generator"] = content
|
||||
|
||||
if prop.startswith("og:"):
|
||||
meta["opengraph"][prop] = content
|
||||
if name.startswith("twitter:"):
|
||||
meta["twitter"][name] = content
|
||||
|
||||
# Canonical
|
||||
c_match = re.search(
|
||||
r'<link\s+[^>]*rel=["\']canonical["\'][^>]*href=["\']([^"\']*)["\']',
|
||||
html_text,
|
||||
re.IGNORECASE,
|
||||
)
|
||||
if not c_match:
|
||||
c_match = re.search(
|
||||
r'<link\s+[^>]*href=["\']([^"\']*)["\'][^>]*rel=["\']canonical["\']',
|
||||
html_text,
|
||||
re.IGNORECASE,
|
||||
)
|
||||
if c_match:
|
||||
meta["canonical"] = c_match.group(1).strip()
|
||||
|
||||
# JSON-LD
|
||||
for j_match in re.finditer(
|
||||
r'<script\s+[^>]*type=["\']application/ld\+json["\'][^>]*>(.*?)</script>',
|
||||
html_text,
|
||||
re.IGNORECASE | re.DOTALL,
|
||||
):
|
||||
try:
|
||||
raw_ld = j_match.group(1).strip()
|
||||
parsed = json.loads(raw_ld)
|
||||
meta["json_ld"].append(parsed)
|
||||
except Exception:
|
||||
meta["json_ld"].append(
|
||||
{"raw": j_match.group(1).strip(), "error": "Invalid JSON"}
|
||||
)
|
||||
|
||||
# Headings
|
||||
for h in ("h1", "h2", "h3"):
|
||||
for m in re.finditer(
|
||||
rf"<{h}[^>]*>(.*?)</{h}>", html_text, re.IGNORECASE | re.DOTALL
|
||||
):
|
||||
# Clean inner HTML tags
|
||||
clean = re.sub(r"<[^>]+>", " ", m.group(1))
|
||||
clean = " ".join(clean.split())
|
||||
if clean:
|
||||
meta["headings"][h].append(clean)
|
||||
|
||||
# CMS signals
|
||||
lower_html = html_text.lower()
|
||||
if "wp-content" in lower_html or "wordpress" in lower_html:
|
||||
meta["cms_signals"].append("WordPress detected (wp-content / wp-includes)")
|
||||
if "wix.com" in lower_html or "wixsite" in lower_html:
|
||||
meta["cms_signals"].append("Wix detected")
|
||||
if "squarespace" in lower_html:
|
||||
meta["cms_signals"].append("Squarespace detected")
|
||||
if "shopify" in lower_html:
|
||||
meta["cms_signals"].append("Shopify detected")
|
||||
if "elementor" in lower_html:
|
||||
meta["cms_signals"].append("Elementor page builder detected")
|
||||
if "yoast" in lower_html:
|
||||
meta["cms_signals"].append("Yoast SEO plugin detected")
|
||||
|
||||
return meta
|
||||
|
||||
|
||||
def extract_links(html_text, base_url):
|
||||
parsed_base = urllib.parse.urlparse(base_url)
|
||||
base_domain = parsed_base.netloc.lower()
|
||||
|
||||
internal = set()
|
||||
external = set()
|
||||
social = set()
|
||||
contacts = set()
|
||||
|
||||
social_domains = (
|
||||
"linkedin.com",
|
||||
"instagram.com",
|
||||
"facebook.com",
|
||||
"twitter.com",
|
||||
"x.com",
|
||||
"youtube.com",
|
||||
"wa.me",
|
||||
"whatsapp.com",
|
||||
)
|
||||
|
||||
for match in re.finditer(
|
||||
r'<a\s+[^>]*href=["\']([^"\']*)["\']', html_text, re.IGNORECASE
|
||||
):
|
||||
href = match.group(1).strip()
|
||||
if not href or href.startswith("#") or href.startswith("javascript:"):
|
||||
continue
|
||||
|
||||
if href.startswith("mailto:") or href.startswith("tel:"):
|
||||
contacts.add(href)
|
||||
continue
|
||||
|
||||
full_url = urllib.parse.urljoin(base_url, href)
|
||||
parsed_target = urllib.parse.urlparse(full_url)
|
||||
target_domain = parsed_target.netloc.lower()
|
||||
|
||||
if any(sd in target_domain for sd in social_domains):
|
||||
social.add(full_url)
|
||||
elif target_domain == base_domain or target_domain.endswith("." + base_domain):
|
||||
internal.add(full_url)
|
||||
elif target_domain:
|
||||
external.add(full_url)
|
||||
|
||||
return {
|
||||
"internal": sorted(internal),
|
||||
"external": sorted(external),
|
||||
"social": sorted(social),
|
||||
"contacts": sorted(contacts),
|
||||
"counts": {
|
||||
"internal": len(internal),
|
||||
"external": len(external),
|
||||
"social": len(social),
|
||||
"contacts": len(contacts),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def main():
|
||||
target_url = (
|
||||
sys.argv[1] if len(sys.argv) > 1 else "https://www.amcsolutionscolombia.com/"
|
||||
)
|
||||
parsed_target = urllib.parse.urlparse(target_url)
|
||||
if not parsed_target.scheme:
|
||||
target_url = "https://" + target_url
|
||||
|
||||
timestamp = datetime.now(UTC).strftime("%Y-%m-%d_%H-%M-%S")
|
||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
out_dir = os.path.join(script_dir, "raw", timestamp)
|
||||
os.makedirs(out_dir, exist_ok=True)
|
||||
|
||||
print(f"[*] Iniciando inspección de: {target_url}")
|
||||
print(f"[*] Directorio de salida: {out_dir}")
|
||||
|
||||
# 1. Fetch Homepage
|
||||
print("[1/4] Descargando página de inicio...")
|
||||
home_res = fetch_url(target_url)
|
||||
|
||||
# Save headers
|
||||
headers_file = os.path.join(out_dir, "headers.txt")
|
||||
with open(headers_file, "w", encoding="utf-8") as f:
|
||||
f.write(f"Target URL: {target_url}\n")
|
||||
f.write(f"Final URL: {home_res['final_url']}\n")
|
||||
f.write(f"Status Code: {home_res['status']}\n")
|
||||
f.write(f"Elapsed: {home_res['elapsed_ms']} ms\n")
|
||||
if home_res["error"]:
|
||||
f.write(f"Error: {home_res['error']}\n")
|
||||
f.write("\n--- Redirect Chain ---\n")
|
||||
for step in home_res["redirect_chain"]:
|
||||
f.write(
|
||||
f"{step['status']} {step['message']}: "
|
||||
f"{step['from_url']} -> {step['to_url']}\n"
|
||||
)
|
||||
f.write("\n--- Final Response Headers ---\n")
|
||||
for k, v in home_res["headers"].items():
|
||||
f.write(f"{k}: {v}\n")
|
||||
|
||||
# Save homepage HTML
|
||||
html_text = ""
|
||||
if home_res["body"]:
|
||||
html_file = os.path.join(out_dir, "homepage.html")
|
||||
with open(html_file, "wb") as f:
|
||||
f.write(home_res["body"])
|
||||
try:
|
||||
html_text = home_res["body"].decode("utf-8", errors="replace")
|
||||
except Exception:
|
||||
html_text = str(home_res["body"])
|
||||
|
||||
# 2. Fetch robots.txt
|
||||
print("[2/4] Consultando robots.txt...")
|
||||
robots_url = urllib.parse.urljoin(
|
||||
home_res["final_url"] or target_url, "/robots.txt"
|
||||
)
|
||||
robots_res = fetch_url(robots_url)
|
||||
robots_file = os.path.join(out_dir, "robots.txt")
|
||||
with open(robots_file, "w", encoding="utf-8") as f:
|
||||
f.write(f"# Query URL: {robots_url}\n")
|
||||
f.write(f"# Status Code: {robots_res['status']}\n")
|
||||
f.write(f"# Elapsed: {robots_res['elapsed_ms']} ms\n\n")
|
||||
if robots_res["body"]:
|
||||
try:
|
||||
f.write(robots_res["body"].decode("utf-8", errors="replace"))
|
||||
except Exception:
|
||||
f.write(str(robots_res["body"]))
|
||||
else:
|
||||
f.write(f"# No body / Error: {robots_res['error']}\n")
|
||||
|
||||
# 3. Fetch sitemap.xml
|
||||
print("[3/4] Consultando sitemap.xml...")
|
||||
sitemap_url = urllib.parse.urljoin(
|
||||
home_res["final_url"] or target_url, "/sitemap.xml"
|
||||
)
|
||||
sitemap_res = fetch_url(sitemap_url)
|
||||
sitemap_file = os.path.join(out_dir, "sitemap.xml")
|
||||
with open(sitemap_file, "w", encoding="utf-8") as f:
|
||||
f.write(f"<!-- Query URL: {sitemap_url} -->\n")
|
||||
f.write(f"<!-- Status Code: {sitemap_res['status']} -->\n")
|
||||
f.write(f"<!-- Elapsed: {sitemap_res['elapsed_ms']} ms -->\n\n")
|
||||
if sitemap_res["body"]:
|
||||
try:
|
||||
f.write(sitemap_res["body"].decode("utf-8", errors="replace"))
|
||||
except Exception:
|
||||
f.write(str(sitemap_res["body"]))
|
||||
else:
|
||||
f.write(f"<!-- No body / Error: {sitemap_res['error']} -->\n")
|
||||
|
||||
# 4. Parse Metadata and Links
|
||||
print("[4/4] Extrayendo metadatos y grafos de enlaces...")
|
||||
metadata = parse_html_metadata(html_text, home_res["final_url"] or target_url)
|
||||
with open(os.path.join(out_dir, "metadata.json"), "w", encoding="utf-8") as f:
|
||||
json.dump(metadata, f, indent=2, ensure_ascii=False)
|
||||
|
||||
links = extract_links(html_text, home_res["final_url"] or target_url)
|
||||
with open(os.path.join(out_dir, "links.json"), "w", encoding="utf-8") as f:
|
||||
json.dump(links, f, indent=2, ensure_ascii=False)
|
||||
|
||||
# 5. Summary
|
||||
summary = {
|
||||
"timestamp_utc": timestamp,
|
||||
"target_url": target_url,
|
||||
"final_url": home_res["final_url"],
|
||||
"status_code": home_res["status"],
|
||||
"elapsed_ms": home_res["elapsed_ms"],
|
||||
"html_size_bytes": len(home_res["body"]),
|
||||
"robots_status": robots_res["status"],
|
||||
"sitemap_status": sitemap_res["status"],
|
||||
"title": metadata["title"],
|
||||
"h1_count": len(metadata["headings"]["h1"]),
|
||||
"internal_links_count": links["counts"]["internal"],
|
||||
"external_links_count": links["counts"]["external"],
|
||||
"social_links_count": links["counts"]["social"],
|
||||
"cms_signals": metadata["cms_signals"],
|
||||
"output_directory": out_dir,
|
||||
}
|
||||
with open(os.path.join(out_dir, "summary.json"), "w", encoding="utf-8") as f:
|
||||
json.dump(summary, f, indent=2, ensure_ascii=False)
|
||||
|
||||
print("\n[+] Inspección técnica completada:")
|
||||
print(f" - Estado HTTP: {home_res['status']} ({home_res['elapsed_ms']} ms)")
|
||||
print(f" - URL final: {home_res['final_url']}")
|
||||
cms_desc = (
|
||||
", ".join(metadata["cms_signals"]) if metadata["cms_signals"] else "No evidente"
|
||||
)
|
||||
print(f" - CMS identificado: {cms_desc}")
|
||||
print(f" - Robots.txt HTTP: {robots_res['status']}")
|
||||
print(f" - Sitemap.xml HTTP: {sitemap_res['status']}")
|
||||
print(f" - Título: {metadata['title']}")
|
||||
print(f" - Enlaces internos descubiertos: {links['counts']['internal']}")
|
||||
print(f" - Enlaces sociales descubiertos: {links['counts']['social']}")
|
||||
print(f" - Artefactos guardados en: {out_dir}/\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,38 @@
|
||||
[project]
|
||||
name = "amc-tools"
|
||||
version = "0.1.0"
|
||||
description = "Herramientas de inspección técnica para AMC Solutions"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.13"
|
||||
dependencies = []
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pyright>=1.1.410",
|
||||
"ruff>=0.15.0",
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py313"
|
||||
line-length = 88
|
||||
exclude = ["raw"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E", # pycodestyle errors
|
||||
"W", # pycodestyle warnings
|
||||
"F", # Pyflakes
|
||||
"I", # isort
|
||||
"B", # flake8-bugbear
|
||||
"C4", # flake8-comprehensions
|
||||
"UP", # pyupgrade
|
||||
]
|
||||
ignore = []
|
||||
|
||||
[tool.pyright]
|
||||
include = ["."]
|
||||
exclude = ["raw", ".venv"]
|
||||
venvPath = "."
|
||||
venv = ".venv"
|
||||
pythonVersion = "3.13"
|
||||
typeCheckingMode = "standard"
|
||||
@@ -0,0 +1 @@
|
||||
# Keep raw dumps directory tracked
|
||||
Generated
+78
@@ -0,0 +1,78 @@
|
||||
version = 1
|
||||
revision = 5
|
||||
requires-python = ">=3.13"
|
||||
|
||||
[[package]]
|
||||
name = "amc-tools"
|
||||
version = "0.1.0"
|
||||
source = { virtual = "." }
|
||||
|
||||
[package.dev-dependencies]
|
||||
dev = [
|
||||
{ name = "pyright" },
|
||||
{ name = "ruff" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
|
||||
[package.metadata.requires-dev]
|
||||
dev = [
|
||||
{ name = "pyright", specifier = ">=1.1.410" },
|
||||
{ name = "ruff", specifier = ">=0.15.0" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nodeenv"
|
||||
version = "1.11.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9a/8e/105de02c1322cfada6d9710d9146ef8026419d433c9d08359a2d35805811/nodeenv-1.11.0.tar.gz", hash = "sha256:3ce8fe5b71d16e8af7039ca65257354100bc772965d6bc549070649e53b1b146", size = 99301, upload-time = "2026-09-26T11:29:21.367Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/54/c8/12811c9b48fde162bb72b6f2e78fada9a247a09d7bb5be2050a5d099c77b/nodeenv-1.11.0-py2.py3-none-any.whl", hash = "sha256:edaa16e6c14d7cf395d75d4bbd5a26390f4dc06501a33b4e76282b02cc688a25", size = 34277, upload-time = "2026-09-26T11:29:19.933Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyright"
|
||||
version = "1.1.414"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "nodeenv" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e1/1b/244c7b710031ada80f27e579ec20d28a2285dfc318fed0339866b1047f12/pyright-1.1.414.tar.gz", hash = "sha256:523c0a97c60da6333234955c277730c9cf4f5bd6d5399e7b7d2b0fc5d3599524", size = 4154638, upload-time = "2026-09-10T12:26:53.181Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d7/ba/18b6e682ead424ad24bcc134339ae5d1b931cd9ae260540592a058a91279/pyright-1.1.414-py3-none-any.whl", hash = "sha256:2a6b4b3298c9eec174c5ed83bd338de6eee82df2992f3e1930e6199d381be36f", size = 6225049, upload-time = "2026-09-10T12:26:51.427Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ruff"
|
||||
version = "0.16.10"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/c4/49/23802c45f093eb14bde54b141d2b2f058edfa63a06db7beed047308cc08f/ruff-0.16.10.tar.gz", hash = "sha256:eff4728c4eaae93f0955cd264d24b2ab348e74bf59986ccf282ba6dc16b3b017", size = 4958724, upload-time = "2026-10-01T18:03:21.697Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/2f/21/ebce22e1d90cdb2cd691026b9c6e9bec6499f0b396089481755b5d49efff/ruff-0.16.10-py3-none-linux_armv6l.whl", hash = "sha256:488b0fe3f3574210e5cf80d9f59b9e3ab17a127a8155de3f307b392589cfb511", size = 10095557, upload-time = "2026-10-01T18:02:36.072Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/98/a54de85876a8b2612bfa0d84c7b9abfb39c6a3354aee7800b09c1649b9e3/ruff-0.16.10-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:e748ff95c934c4e978783b8e687bc174e7bd84e8ad24e3243e1ecfcda5e0282d", size = 10340577, upload-time = "2026-10-01T18:02:39.258Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9f/16/1a5a4a2657effe4806110f2b907313802f1367fcdbb29e8122766e407fab/ruff-0.16.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:3031a4a2e8e7b8a46f70be45f198c35a11ece509a94b80334d8d397a33c67550", size = 9774282, upload-time = "2026-10-01T18:02:41.79Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6e/fb/470085af734da396e68cd80fb0a3e7c109a459716ae59588c0f6fab8a17d/ruff-0.16.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:494401c86df4c4c25f69b9419605d944467ee98c42fb6ad405ef4fa40b8fb67d", size = 9920895, upload-time = "2026-10-01T18:02:44.458Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/57/de/f10cffe4f88a37ea6615ec460f01bf76f0bc1477737a35d9ee61a630a78b/ruff-0.16.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d203abc0ff2b773ee33d00ab8df0bb67046fbc7c07b119332f08b9b345cf8221", size = 9902707, upload-time = "2026-10-01T18:02:47.041Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ff/44/3fdcedf83ae60ef837dd239170e480dce606a9142cfa2db911afdf855fd9/ruff-0.16.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd83d1235a5258d318477bc5b576303974cbdef5df0c01a1bff14efcc23bd12a", size = 10619287, upload-time = "2026-10-01T18:02:49.485Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/62/02e76a5574002153618eafbb70e159468addc72a5d2c488e65cbb4639d2d/ruff-0.16.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bc2610fb269fa56dd8a68669ae470fa6272902668c0fc2ebc3aa112b2633d5b8", size = 11339942, upload-time = "2026-10-01T18:02:52.008Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/c4/cde27d47ad8d4126c587e608c67c46e7feac11763f606d261a1bc8a489e6/ruff-0.16.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3e70175e29cc94c26ea296c80e470180b744b7419026898e58f520c6ab32578e", size = 10934316, upload-time = "2026-10-01T18:02:54.811Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e4/03/17234145f302a645a123e8c3bb2411ecf4669fbc350de3b0d803230a1729/ruff-0.16.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f33f43a864a8483eebd160e713336c8bab02c934feaff0a33cf5ccb41546d09a", size = 10387968, upload-time = "2026-10-01T18:02:57.497Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/71/29/2493af60240ee7644b38a4b821f5f9c3b5a4fa3178770fe1d0c685217395/ruff-0.16.10-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:1dfc6f0088149fb6a362c1c446bcbb3fd2157b3852fe2fa68409276eab9ad9b3", size = 10537906, upload-time = "2026-10-01T18:03:00.006Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/9a/f56b28f3b143bb9e518c34fb89ab191b626bca8b70dbf8af0d2e2d473572/ruff-0.16.10-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:6553498afc35f580f036030795810b9e6bcea31604b0fd9e8d352795473042e3", size = 10012938, upload-time = "2026-10-01T18:03:03.006Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/c4/fca37362848ea4d4d80712df13632e645e7c7cfb1bdedf140699ac7a090b/ruff-0.16.10-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:a3b8471dea115d37f123882be852bed13403746d3a76c11de4a19ec5f9ff5a03", size = 9897945, upload-time = "2026-10-01T18:03:05.818Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7d/c7/e0bc57664d6e0c61fd22f620af260fe9662d7e1ddb320ea7f160e76ef165/ruff-0.16.10-py3-none-musllinux_1_2_i686.whl", hash = "sha256:92e59a70bcbd9d3a5483656da906ec28edfdacfce00afd99edb8b4e9d15644be", size = 10333134, upload-time = "2026-10-01T18:03:08.25Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/21/aa/5c9f3b68737c0e4a33a1db5dfab44f7b786d96ca91a7233112ddab1e6dc2/ruff-0.16.10-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:7ae7375f803b5520dc9f546bed7e3a0acb70b91812e9bb4b19927de22f25b77d", size = 10741702, upload-time = "2026-10-01T18:03:10.775Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/78/fa/0f9c2020dc316c53d983be011720b8157cc052b97e3f4dfa7db6d0f880a6/ruff-0.16.10-py3-none-win32.whl", hash = "sha256:2a12e01cb9156c10c466f63b46eaae5ecea28dfbd21b5836353ae498e7d1349a", size = 10139176, upload-time = "2026-10-01T18:03:13.267Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/99/29/cfb0df9448d4d4ad48c2de029ada9ebd71baa6da983a6c77ee6c6cd0fe82/ruff-0.16.10-py3-none-win_amd64.whl", hash = "sha256:97f2015c92aa97105b0eab19eb5d224884399281cfc5da86a92db4ab5e7fb2ca", size = 10584734, upload-time = "2026-10-01T18:03:16.006Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fc/05/c16957eb287c3fc062e032619a25868d93d408a844b725bcf514f7a378ff/ruff-0.16.10-py3-none-win_arm64.whl", hash = "sha256:25a65fe998c4e6861ec079ada5826a2fc605e6cbccbe9dcd7fac1f54e791621b", size = 10366440, upload-time = "2026-10-01T18:03:19.04Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "typing-extensions"
|
||||
version = "4.16.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" },
|
||||
]
|
||||
Reference in new issue
Block a user