Skip to content

AI powered OSINT engine to discover and map 840+ social media identities across the web

chore: release 2.5.1; follow up the bot-wall and Chinese-sites merge

arxhr0070e7910d283e5
diff --git a/.gitignore b/.gitignore
index 4147ab3..ba4a361 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,8 +9,6 @@ venv/
.ruff_cache/
results/
cache/
-.pip-cache/
-.pip-tmp/
config.json
# Evaluation artifacts: captured response corpora and archived metrics. These
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 23e911b..633cfee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,27 @@
# Changelog
+## 2.5.1 (2026-10-07)
+
+### Fixed
+- **Fresh installs crashed on start.** selectolax 1.0.0 (released 2026-10-03) removed the
+ HTML parser backend Aliens Eye imported, and the dependency had no upper bound, so every
+ new `pip install aliens-eye` since then failed with `ImportError: Modest backend is
+ deprecated since selectolax 1.0`. The analyzer now uses selectolax's Lexbor backend, which
+ works on both old and new versions, and the dependency is capped at `<2`. Checked on 706
+ recorded pages: no detection result changes. Thanks to @cristianchiriac (#23).
+
+ If you hit this, upgrade: `pip install -U aliens-eye`.
+- **Bot-check and error pages reported as Found.** Pages such as Cloudflare's "Checking your
+ browser" return HTTP 200 and mention users or profiles, so they could be scored as a found
+ account. A result whose title or meta tags mark it as a challenge, verification or error
+ page is now capped at Maybe. Thanks to @BBmmo-code (#19).
+
+### Added
+- 18 Chinese platforms whose profile URL carries the username, including CSDN, SegmentFault,
+ cnblogs, V2EX, LOFTER and Jianshu. Thanks to @BBmmo-code (#19). Two more from that
+ contribution, leetcode.cn and hupu, were left out because they answer "found" for
+ usernames that do not exist.
+
## 2.5.0 (2026-09-18)
### Security
diff --git a/pyproject.toml b/pyproject.toml
index ee6c49f..cb226eb 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "aliens-eye"
-version = "2.5.0"
+version = "2.5.1"
description = "AI-powered OSINT username scanner across 800+ social media and web platforms"
readme = "README.md"
requires-python = ">=3.10"
@@ -29,7 +29,11 @@ dependencies = [
# Required, not optional: DEFAULT_HEADERS advertises br, and a server that
# honours it returns a body aiohttp raises on without a Brotli decoder.
"Brotli>=1.1",
- "selectolax>=0.3.21",
+ # Capped at the next major: selectolax 1.0 removed the parser backend this
+ # package imported, and with no upper bound every fresh install broke the
+ # day it was published. The analyzer now uses the Lexbor backend, which
+ # exists from 0.3 through 1.x.
+ "selectolax>=0.3.21,<2",
"rich>=13.7",
"aiohttp-socks>=0.8,<1.0",
"platformdirs>=4.0",
diff --git a/src/aliens_eye/__init__.py b/src/aliens_eye/__init__.py
index b33e931..26bc7e4 100644
--- a/src/aliens_eye/__init__.py
+++ b/src/aliens_eye/__init__.py
@@ -1,3 +1,3 @@
"""Aliens Eye - AI-powered OSINT username scanner."""
-__version__ = "2.5.0"
+__version__ = "2.5.1"
diff --git a/src/aliens_eye/core/scanner.py b/src/aliens_eye/core/scanner.py
index 6cac127..4acc501 100644
--- a/src/aliens_eye/core/scanner.py
+++ b/src/aliens_eye/core/scanner.py
@@ -120,8 +120,9 @@ def format_site_url(site_name: str, url_template: str, username: str) -> str:
return url
-# 反爬/人机验证/报错页的标题或 meta 里常出现的特征词。命中说明是风控拦截页、
-# Cloudflare/验证码/安全验证/拒绝访问/服务宕机等,不是真实用户主页。
+# Phrases that show up in the title or meta tags of anti-bot, verification and
+# error pages: Cloudflare interstitials, CAPTCHAs, access-denied and outage
+# pages. A match means the response is that kind of page, not a user profile.
_BOT_WALL_KEYWORDS = (
"just a moment",
"checking your browser",
@@ -146,7 +147,7 @@ _BOT_WALL_KEYWORDS = (
def _looks_like_bot_wall(signals: dict[str, Any]) -> bool:
- """判断该响应是否是反爬/验证/报错类页面,而非真实用户主页。"""
+ """Whether a response is an anti-bot, verification or error page, not a profile."""
title = str(signals.get("title", "") or "").lower()
meta = " ".join(str(m) for m in (signals.get("meta_samples") or [])).lower()
haystack = f"{title} {meta}"
@@ -428,8 +429,9 @@ class UsernameScanner:
confidence,
)
- # 反爬/人机验证/报错页绝不算作真实命中:这类页面常返回 200 且带
- # user/profile 字样,易被误判为 Found。统一降级为 Maybe 以减少假阳性。
+ # A challenge or error page is never a real hit. These pages often
+ # return 200 and mention "user" or "profile", which reads as Found,
+ # so they are capped at Maybe.
if status_text == "Found" and _looks_like_bot_wall(bundle.signals):
status_text = "Maybe"
confidence = min(confidence, 55)
diff --git a/src/aliens_eye/data/sites.json b/src/aliens_eye/data/sites.json
index b03d029..a41d646 100644
--- a/src/aliens_eye/data/sites.json
+++ b/src/aliens_eye/data/sites.json
@@ -843,9 +843,7 @@
"segmentfault": "https://segmentfault.com/u/{}",
"cnblogs": "https://home.cnblogs.com/u/{}",
"oschina": "https://my.oschina.net/{}",
- "leetcode.cn": "https://leetcode.cn/u/{}",
"V2EX": "https://www.v2ex.com/member/{}",
- "hupu": "https://my.hupu.com/{}",
"51cto": "https://blog.51cto.com/{}",
"新浪博客": "https://blog.sina.com.cn/{}",
"LOFTER": "https://{}.lofter.com/",
diff --git a/tests/test_config_cli.py b/tests/test_config_cli.py
index 4a639ea..4485f08 100644
--- a/tests/test_config_cli.py
+++ b/tests/test_config_cli.py
@@ -172,3 +172,17 @@ def test_package_version_matches_pyproject():
from aliens_eye import __version__
assert __version__ == _declared_version()
+
+
+def test_selectolax_has_an_upper_bound():
+ """Regression: with an unbounded ``selectolax>=0.3.21`` every fresh install
+ broke the day selectolax 1.0 removed the backend this package imported."""
+ [requirement] = [dep for dep in _declared_dependencies() if dep.startswith("selectolax")]
+ assert "<" in requirement
+
+
+def test_analyzer_uses_a_parser_backend_that_still_exists():
+ """The Modest backend (selectolax.parser) is gone in 1.0; Lexbor is in both."""
+ import aliens_eye.core.analyzer as analyzer
+
+ assert analyzer.HTMLParser.__module__.startswith("selectolax.lexbor")
diff --git a/tests/test_scanner.py b/tests/test_scanner.py
index ce541ee..c43cbde 100644
--- a/tests/test_scanner.py
+++ b/tests/test_scanner.py
@@ -141,3 +141,66 @@ async def test_build_connector_http_proxy_uses_tcp():
connector = build_connector(config, 5)
assert isinstance(connector, aiohttp.TCPConnector)
await connector.close()
+
+
+# --- bot-wall cap ---------------------------------------------------------
+
+from aliens_eye.core.scanner import _looks_like_bot_wall # noqa: E402
+
+
+ "Just a moment...",
+ "Checking your browser",
+ "Attention Required! | Cloudflare",
+ "Access Denied",
+ "500 Internal Server Error",
+ "Verify you are human",
+])
+def test_challenge_and_error_titles_are_bot_walls(title):
+ assert _looks_like_bot_wall({"title": title, "meta_samples": []})
+
+
+def test_challenge_text_in_meta_tags_counts():
+ assert _looks_like_bot_wall({"title": "example.com", "meta_samples": ["Please complete the CAPTCHA"]})
+
+
[email protected]("signals", [
+ {"title": "torvalds (Linus Torvalds) - Profile", "meta_samples": ["followers and posts"]},
+ {"title": "", "meta_samples": []},
+ {"title": None},
+ {},
+])
+def test_ordinary_pages_are_not_bot_walls(signals):
+ assert not _looks_like_bot_wall(signals)
+
+
+async def test_a_challenge_page_is_capped_at_maybe(found_html, tmp_path, logger):
+ """A 200 page with profile wording but a challenge title must not be Found.
+
+ Seen live: pcgamer served "Checking your browser" for every username, real
+ or made up, and each one was reported as a found account.
+ """
+ app = web.Application()
+ challenge = found_html.replace(
+ "<title>torvalds (Linus Torvalds) - Profile</title>",
+ "<title>Checking your browser</title>",
+ )
+ assert challenge != found_html
+
+ async def page(request):
+ return web.Response(text=challenge, content_type="text/html")
+
+ app.router.add_get("/u/{username}", page)
+ server = TestServer(app)
+ await server.start_server()
+ try:
+ sites = {"walled": f"http://{server.host}:{server.port}/u/{{}}"}
+ [result] = await make_scanner(sites, tmp_path, logger).scan_all_sites("torvalds")
+ finally:
+ await server.close()
+
+ assert result["status"] == "Maybe"
+ assert result["confidence"] <= 55
+ # The suffix is only added when the uncapped verdict was Found, so this also
+ # proves the cap is what changed the result.
+ assert result["ai_analysis"]["method"].endswith("-botwall-capped")