Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

Fix lxml detection bug and enforce Python 3.10+ in installer

AgriciDaniel3418a5626189
diff --git a/install.sh b/install.sh
index 7171a51..969ba19 100755
--- a/install.sh
+++ b/install.sh
@@ -19,8 +19,13 @@ main() {
command -v python3 >/dev/null 2>&1 || { echo "✗ Python 3 is required but not installed."; exit 1; }
command -v git >/dev/null 2>&1 || { echo "✗ Git is required but not installed."; exit 1; }
- # Check Python version
+ # Check Python version (3.10+ required)
PYTHON_VERSION=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
+ PYTHON_OK=$(python3 -c 'import sys; print(1 if sys.version_info >= (3, 10) else 0)')
+ if [ "${PYTHON_OK}" = "0" ]; then
+ echo "✗ Python 3.10+ is required but ${PYTHON_VERSION} was found."
+ exit 1
+ fi
echo "✓ Python ${PYTHON_VERSION} detected"
# Create directories
diff --git a/scripts/parse_html.py b/scripts/parse_html.py
index d65f69d..af211fb 100755
--- a/scripts/parse_html.py
+++ b/scripts/parse_html.py
@@ -21,6 +21,12 @@ except ImportError:
print("Error: beautifulsoup4 required. Install with: pip install beautifulsoup4")
sys.exit(1)
+try:
+ import lxml # noqa: F401
+ _HTML_PARSER = "lxml"
+except ImportError:
+ _HTML_PARSER = "html.parser"
+
def parse_html(html: str, base_url: Optional[str] = None) -> dict:
"""
@@ -33,7 +39,7 @@ def parse_html(html: str, base_url: Optional[str] = None) -> dict:
Returns:
Dictionary with extracted SEO data
"""
- soup = BeautifulSoup(html, "lxml" if "lxml" in sys.modules else "html.parser")
+ soup = BeautifulSoup(html, _HTML_PARSER)
result = {
"title": None,