小红书(XiaoHongShu、RedNote)链接提取/作品采集工具:提取账号发布、收藏、点赞、专辑作品链接;提取搜索结果作品、用户链接;采集小红书作品信息;提取小红书作品下载地址;下载小红书作品文件
This report presents the forensic synthetic code analysis of JoeanAmier/XHS-Downloader, a Python project with 11,944 GitHub stars. SynthScan v2.0 examined 12,148 lines of code across 64 source files, recording 113 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 9.3 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 113 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | source/__init__.py | 1 | CODE | |
| LOW | source/__init__.py | 2 | CODE | |
| LOW | source/__init__.py | 3 | CODE | |
| LOW | source/__init__.py | 4 | CODE | |
| LOW | source/translation/__init__.py | 1 | CODE | |
| LOW | source/translation/__init__.py | 1 | CODE | |
| LOW | source/TUI/__init__.py | 1 | CODE | |
| LOW | source/module/recorder.py | 8 | CODE | |
| LOW | source/module/__init__.py | 1 | CODE | |
| LOW | source/module/__init__.py | 2 | CODE | |
| LOW | source/module/__init__.py | 3 | CODE | |
| LOW | source/module/__init__.py | 3 | CODE | |
| LOW | source/module/__init__.py | 7 | CODE | |
| LOW | source/module/__init__.py | 8 | CODE | |
| LOW | source/module/__init__.py | 9 | CODE | |
| LOW | source/module/__init__.py | 10 | CODE | |
| LOW | source/module/__init__.py | 11 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 12 | CODE | |
| LOW | source/module/__init__.py | 36 | CODE | |
| LOW | source/module/__init__.py | 36 | CODE | |
| LOW | source/module/__init__.py | 36 | CODE | |
| LOW | source/module/__init__.py | 36 | CODE | |
| LOW | source/module/__init__.py | 42 | CODE | |
| LOW | source/module/script.py | 7 | CODE | |
| LOW | source/module/mapping.py | 9 | CODE | |
| LOW | source/module/mapping.py | 10 | CODE | |
| LOW | source/module/manager.py | 23 | CODE | |
| LOW | source/CLI/__init__.py | 1 | CODE | |
| LOW | source/expansion/__init__.py | 2 | CODE | |
| LOW | source/expansion/__init__.py | 3 | CODE | |
| LOW | source/expansion/__init__.py | 4 | CODE | |
| LOW | source/expansion/__init__.py | 5 | CODE | |
| LOW | source/expansion/__init__.py | 6 | CODE | |
| LOW | source/expansion/__init__.py | 7 | CODE | |
| LOW | source/expansion/__init__.py | 8 | CODE | |
| LOW | source/expansion/__init__.py | 9 | CODE | |
| LOW | source/expansion/__init__.py | 10 | CODE | |
| LOW | source/application/download.py | 23 | CODE | |
| LOW | source/application/download.py | 25 | CODE | |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | source/__init__.py | 6 | __all__ = [ | CODE |
| LOW | source/TUI/update.py | 13 | __all__ = ["Update"] | CODE |
| LOW | source/TUI/loading.py | 8 | __all__ = ["Loading"] | CODE |
| LOW | source/TUI/monitor.py | 15 | __all__ = ["Monitor"] | CODE |
| LOW | source/TUI/index.py | 24 | __all__ = ["Index"] | CODE |
| LOW | source/TUI/__init__.py | 3 | __all__ = ["XHSDownloader"] | CODE |
| LOW | source/TUI/about.py | 15 | __all__ = ["About"] | CODE |
| LOW | source/TUI/setting.py | 10 | __all__ = ["Setting"] | CODE |
| LOW | source/TUI/record.py | 10 | __all__ = ["Record"] | CODE |
| LOW | source/TUI/app.py | 15 | __all__ = ["XHSDownloader"] | CODE |
| LOW | source/TUI/app.py | 107 | def update_result(self, args: tuple[str, str]) -> None: | CODE |
| LOW | source/TUI/progress.py | 4 | __all__ = ["Progress"] | CODE |
| LOW | source/module/extend.py | 1 | __all__ = ["Account"] | CODE |
| LOW | source/module/recorder.py | 10 | __all__ = ["IDRecorder", "DataRecorder", "MapRecorder"] | CODE |
| LOW | source/module/settings.py | 7 | __all__ = ["Settings"] | CODE |
| LOW | source/module/mapping.py | 13 | __all__ = ["Mapping"] | CODE |
| LOW | source/module/manager.py | 25 | __all__ = ["Manager"] | CODE |
| LOW | source/CLI/__init__.py | 3 | __all__ = ["cli"] | CODE |
| LOW | source/CLI/main.py | 29 | __all__ = ["cli"] | CODE |
| LOW | source/expansion/converter.py | 6 | __all__ = ["Converter"] | CODE |
| LOW | source/expansion/browser.py | 23 | __all__ = ["BrowserCookie"] | CODE |
| LOW | source/expansion/namespace.py | 5 | __all__ = ["Namespace"] | CODE |
| LOW | source/application/download.py | 27 | __all__ = ["Download"] | CODE |
| LOW | source/application/request.py | 12 | __all__ = ["Html"] | CODE |
| LOW | source/application/__init__.py | 3 | __all__ = ["XHS"] | CODE |
| LOW | source/application/app.py | 64 | __all__ = ["XHS"] | CODE |
| LOW | source/application/explore.py | 6 | __all__ = ["Explore"] | CODE |
| LOW | source/application/video.py | 4 | __all__ = ["Video"] | CODE |
| LOW | source/application/image.py | 5 | __all__ = ["Image"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | source/CLI/main.py | 355 | # Step 1: 切换语言 | COMMENT |
| LOW⚡ | source/CLI/main.py | 359 | # Step 2: 如果请求了帮助信息,则显示帮助并退出 | COMMENT |
| LOW⚡ | source/CLI/main.py | 365 | # Step 3: 主逻辑 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | source/CLI/main.py | 355 | # Step 1: 切换语言 | COMMENT |
| LOW⚡ | source/CLI/main.py | 359 | # Step 2: 如果请求了帮助信息,则显示帮助并退出 | COMMENT |
| LOW⚡ | source/CLI/main.py | 365 | # Step 3: 主逻辑 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | requirements.txt | 1 | # This file was autogenerated by uv via the following command: | COMMENT |
| LOW | source/CLI/main.py | 181 | _("是否将作品文件的修改时间属性修改为作品的发布时间"), | COMMENT |
| LOW | source/application/app.py | 681 | await self.manager.close() | COMMENT |
| LOW | static/XHS-Downloader.js | 1 | // ==UserScript== | COMMENT |
| LOW | static/XHS-Downloader.js | 21 | // @match http*://www.rednote.com/board/* | COMMENT |
| LOW | static/other/自动滚动页面.js | 1 | // ==UserScript== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | source/expansion/pyi_rth_beartype.py | 59 | def _patched_add_beartype_pathhook(): | CODE |
| LOW | source/expansion/cleaner.py | 100 | def remove_control_characters( | CODE |
| LOW | source/application/download.py | 305 | def __get_resume_byte_position(file: Path) -> int: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | source/expansion/pyi_rth_beartype.py | 82 | except Exception: | CODE |
| LOW | source/application/download.py | 329 | except Exception as error: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | source/application/app.py | 218 | CODE | |
| LOW | source/application/app.py | 363 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | source/application/app.py | 121 | CODE |