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(google): add PySocks so Google API calls honour HTTPS_PROXY
Łukasz Ciołecki6806c0843ad4
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ca9aacd..5a7f380 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+### Fixed++- Google API calls made through google-api-python-client (Search Console,+ Indexing, YouTube) ignored `HTTPS_PROXY`. httplib2 tunnels through a proxy only when PySocks+ is installed; without it, it connects directly over HTTPS and fails where+ egress goes only through a proxy, such as the Claude Code sandbox+ (`Unable to find the server at oauth2.googleapis.com`). `PySocks` is now+ in `requirements.txt`; rerun `/seo setup` to pick it up.+## [2.4.2] - 2026-10-04seo-cockpit, Google sign-in through your own account, and a schema-hook fix.diff --git a/requirements.txt b/requirements.txtindex d426165..ae3bc97 100644--- a/requirements.txt+++ b/requirements.txt@@ -24,5 +24,6 @@ openpyxl>=3.1.5,<4.0.0 # No known CVEs (Excel export)google-api-python-client>=2.196.0,<3.0.0 # No known CVEsgoogle-auth>=2.56.2,<3.0.0 # No known CVEsgoogle-auth-httplib2>=0.4.2,<1.0.0 # Compatibility floor for current google-auth stack+PySocks>=1.7.1,<2.0.0 # httplib2 needs it to honour HTTPS_PROXYgoogle-analytics-data>=0.18.0,<1.0.0 # No known CVEsgoogle-ads>=31.4.0,<40.0.0 # Direct import in keyword_planner.pydiff --git a/tests/test_google_proxy.py b/tests/test_google_proxy.pynew file mode 100644index 0000000..5335f2a--- /dev/null+++ b/tests/test_google_proxy.py@@ -0,0 +1,25 @@+"""Google API calls honour HTTPS_PROXY.++google-api-python-client sends requests through httplib2, which tunnels+through a proxy only when the PySocks `socks` module is importable. Without+it, httplib2 drops the proxy silently on HTTPS and connects directly, which+fails wherever egress is allowed only through a proxy. These tests never+touch the network.+"""++from __future__ import annotations++import pytest++httplib2 = pytest.importorskip("httplib2")+++def test_httplib2_uses_https_proxy_from_environment(monkeypatch) -> None:+ monkeypatch.delenv("no_proxy", raising=False)+ monkeypatch.delenv("NO_PROXY", raising=False)+ monkeypatch.setenv("https_proxy", "http://127.0.0.1:3128")++ proxy_info = httplib2.proxy_info_from_environment("https")++ assert proxy_info is not None+ assert proxy_info.isgood(), "httplib2 ignores the proxy: PySocks is missing"