← Back to scan
File as GitHub Issue repo: NanmiCoder/MediaCrawler

Push this scan report to NanmiCoder/MediaCrawler

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

Missing import: `platform` used but not imported

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED107 [MINED107] Missing import: `json` used but not imported: The file uses `json.something(..… store/xhs/__init__.py:225
CRIT MINED107 [MINED107] Missing import: `stat` used but not imported: The file uses `stat.something(..… api/routers/data.py:54
CRIT MINED107 [MINED107] Missing import: `platform` used but not imported: The file uses `platform.some… api/routers/data.py:80
CRIT MINED107 [MINED107] Missing import: `queue` used but not imported: The file uses `queue.something(… api/routers/websocket.py:68
CRIT MINED107 [MINED107] Missing import: `platform` used but not imported: The file uses `platform.some… cmd_arg/arg.py:349
CRIT MINED013 [MINED013] Password In Url: https://user:password@host — leaks creds via logs, referrer, … proxy/proxy_mixin.py:72
CRIT MINED013 [MINED013] Password In Url: https://user:password@host — leaks creds via logs, referrer, … proxy/proxy_ip_pool.py:83
CRIT MINED013 [MINED013] Password In Url: https://user:password@host — leaks creds via logs, referrer, … database/mongodb_store_base.py:67
CRIT SEC022 [SEC022] Database URL With Embedded Credential: A database connection URL contains an emb… database/mongodb_store_base.py:67
CRIT MINED030 [MINED030] Python Pickle Loads: pickle.loads() can execute arbitrary code via __reduce__. cache/redis_cache.py:65
CRIT MINED018 [MINED018] Unsafe Deserialization Pickle: pickle.loads / yaml.load (without Loader=SafeLo… cache/redis_cache.py:65
CRIT SEC081 [SEC081] Python: pickle.loads / marshal.loads on untrusted data: pickle.load(s) and marsh… cache/redis_cache.py:65
HIGH MINED106 [MINED106] Phantom test coverage: test_extract_creator_info: Test function `test_extract_… media_platform/tieba/help.py:881
HIGH MINED106 [MINED106] Phantom test coverage: test_extract_tieba_note_list: Test function `test_extra… media_platform/tieba/help.py:872
HIGH MINED106 [MINED106] Phantom test coverage: test_extract_tieba_note_sub_comments: Test function `te… media_platform/tieba/help.py:859
HIGH MINED106 [MINED106] Phantom test coverage: test_extract_tieba_note_parment_comments: Test function… media_platform/tieba/help.py:851
HIGH MINED106 [MINED106] Phantom test coverage: test_extract_note_detail: Test function `test_extract_n… media_platform/tieba/help.py:843
HIGH MINED106 [MINED106] Phantom test coverage: test_extract_search_note_list: Test function `test_extr… media_platform/tieba/help.py:835
HIGH MINED110 [MINED110] Blocking call `time.sleep` inside async function `get_comments`: `time.sleep` … media_platform/kuaishou/core.py:298
HIGH MINED108 [MINED108] `self._create_browser_context` used but never assigned in __init__: Method `_c… tools/cdp_browser.py:191
HIGH MINED108 [MINED108] `self._connect_via_cdp` used but never assigned in __init__: Method `_connect_… tools/cdp_browser.py:188
HIGH MINED108 [MINED108] `self.cleanup` used but never assigned in __init__: Method `launch_and_connect… tools/cdp_browser.py:137
HIGH MINED108 [MINED108] `self._connect_existing_browser` used but never assigned in __init__: Method `… tools/cdp_browser.py:110
HIGH MINED108 [MINED108] `self._create_browser_context` used but never assigned in __init__: Method `la… tools/cdp_browser.py:128
HIGH MINED108 [MINED108] `self._connect_via_cdp` used but never assigned in __init__: Method `launch_an… tools/cdp_browser.py:125
HIGH MINED108 [MINED108] `self._launch_browser` used but never assigned in __init__: Method `launch_and… tools/cdp_browser.py:119
HIGH MINED108 [MINED108] `self._get_browser_path` used but never assigned in __init__: Method `launch_a… tools/cdp_browser.py:113
HIGH MINED108 [MINED108] `self._register_cleanup_handlers` used but never assigned in __init__: Method … tools/cdp_browser.py:122
HIGH MINED108 [MINED108] `self._auto_adjust_column_width` used but never assigned in __init__: Method `… store/excel_store_base.py:359
HIGH MINED108 [MINED108] `self._auto_adjust_column_width` used but never assigned in __init__: Method `… store/excel_store_base.py:357
HIGH MINED108 [MINED108] `self._auto_adjust_column_width` used but never assigned in __init__: Method `… store/excel_store_base.py:355
HIGH MINED108 [MINED108] `self._auto_adjust_column_width` used but never assigned in __init__: Method `… store/excel_store_base.py:354
HIGH MINED108 [MINED108] `self._auto_adjust_column_width` used but never assigned in __init__: Method `… store/excel_store_base.py:353
HIGH MINED108 [MINED108] `self._write_headers` used but never assigned in __init__: Method `store_dynam… store/excel_store_base.py:339
HIGH MINED108 [MINED108] `self._write_row` used but never assigned in __init__: Method `store_dynamic` … store/excel_store_base.py:343
HIGH MINED108 [MINED108] `self._write_headers` used but never assigned in __init__: Method `store_conta… store/excel_store_base.py:315
HIGH MINED108 [MINED108] `self._write_row` used but never assigned in __init__: Method `store_contact` … store/excel_store_base.py:319
HIGH MINED108 [MINED108] `self._write_headers` used but never assigned in __init__: Method `store_creat… store/excel_store_base.py:291
HIGH MINED108 [MINED108] `self._write_row` used but never assigned in __init__: Method `store_creator` … store/excel_store_base.py:295
HIGH MINED108 [MINED108] `self._write_headers` used but never assigned in __init__: Method `store_comme… store/excel_store_base.py:271
HIGH MINED108 [MINED108] `self._write_row` used but never assigned in __init__: Method `store_comment` … store/excel_store_base.py:275
HIGH MINED108 [MINED108] `self._write_headers` used but never assigned in __init__: Method `store_conte… store/excel_store_base.py:249
HIGH MINED108 [MINED108] `self._write_row` used but never assigned in __init__: Method `store_content` … store/excel_store_base.py:253
HIGH MINED108 [MINED108] `self._apply_header_style` used but never assigned in __init__: Method `_write… store/excel_store_base.py:204
HIGH SEC103 [SEC103] LDAP injection — non-constant search filter: User input concatenated into an LDA… media_platform/xhs/extractor.py:61
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). media_platform/xhs/playwright_sign.py:37
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). media_platform/bilibili/help.py:28
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … proxy/providers/kuaidl_proxy.py:114
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … proxy/providers/jishu_http_proxy.py:70
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … media_platform/bilibili/help.py:65
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… media_platform/kuaishou/help.py:27
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… media_platform/douyin/help.py:101
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… media_platform/bilibili/help.py:80
HIGH MINED014 [MINED014] Disabled Tls Verify: verify=False in requests, rejectUnauthorized:false in nod… config/base_config.py:141
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… api/services/crawler_manager.py:77
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… api/routers/websocket.py:148
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… api/routers/data.py:48
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… recv_sms.py:55
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… api/routers/crawler.py:27
HIGH COMP001 [COMP001] High cognitive complexity: Function `get_file_content` has cognitive complexity… api/routers/data.py:99
HIGH MINED115 [MINED115] Action `actions/deploy-pages` pinned to mutable ref `@v4`: `uses: actions/depl… .github/workflows/deploy.yml:64
HIGH MINED115 [MINED115] Action `actions/upload-pages-artifact` pinned to mutable ref `@v3`: `uses: act… .github/workflows/deploy.yml:49
HIGH MINED115 [MINED115] Action `actions/configure-pages` pinned to mutable ref `@v4`: `uses: actions/c… .github/workflows/deploy.yml:43
HIGH MINED115 [MINED115] Action `actions/setup-node` pinned to mutable ref `@v4`: `uses: actions/setup-… .github/workflows/deploy.yml:38
HIGH MINED115 [MINED115] Action `actions/checkout` pinned to mutable ref `@v4`: `uses: actions/checkout… .github/workflows/deploy.yml:32
HIGH MINED131 [MINED131] pre-commit hook `https://github.com/pre-commit/pre-commit-hooks` pinned to mut… .pre-commit-config.yaml:27
HIGH MINED130 [MINED130] Lockfile pulls package from off-canonical host `registry.npmmirror.com`: `pack… package-lock.json:1
HIGH MINED112 [MINED112] FastAPI POST /stop has no auth: Handler `stop_crawler` is registered with rout… api/routers/crawler.py:41
HIGH MINED112 [MINED112] FastAPI POST /start has no auth: Handler `start_crawler` is registered with ro… api/routers/crawler.py:28
HIGH MINED112 [MINED112] FastAPI POST / has no auth: Handler `receive_sms_notification` is registered w… recv_sms.py:56
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/routers/websocket.py:130
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… media_platform/douyin/login.py:102
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… media_platform/douyin/help.py:196
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… media_platform/douyin/help.py:181
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… media_platform/xhs/help.py:368
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… media_platform/tieba/help.py:829
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… media_platform/tieba/help.py:299
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… media_platform/tieba/core.py:441
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… media_platform/kuaishou/help.py:106
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… media_platform/kuaishou/help.py:91
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… api/main.py:137
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/crawler_util.py:61
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/browser_launcher.py:233
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/browser_launcher.py:238
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/time_util.py:92
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/file_header_manager.py:209
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… tools/app_runner.py:102
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… main.py:133
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… main.py:125
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… main.py:96
MED MINED111 [MINED111] Bare except continues silently: Bare `except:` (or `except Exception:`) that r… main.py:82
MED SEC034 [SEC034] Log Injection / Log Forging — unsanitized user input in log: User input is logge… store/tieba/_store_impl.py:275
MED SEC034 [SEC034] Log Injection / Log Forging — unsanitized user input in log: User input is logge… store/kuaishou/_store_impl.py:245
MED SEC034 [SEC034] Log Injection / Log Forging — unsanitized user input in log: User input is logge… store/douyin/_store_impl.py:292
MED SEC014 [SEC014] SSL Verification Disabled: SSL certificate verification is disabled, allowing ma… config/base_config.py:141
MED SEC007 [SEC007] Unsafe Deserialization: Unsafe deserialization can execute arbitrary code. cache/redis_cache.py:65
MED SEC127 [SEC127] AI agent stub — TODO: implement / pass placeholder body: Function body left as T… base/base_crawler.py:93
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… main.py:154
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… api/routers/websocket.py:150
MED ERR001 [ERR001] Silent Exception Swallowing: Silently swallowing all exceptions hides bugs. Even… api/routers/data.py:48
MED COMP001 [COMP001] High cognitive complexity: Function `list_data_files` has cognitive complexity … api/routers/data.py:62
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED MINED124 [MINED124] requirements.txt: `opencv-python` has no version pin: Unpinned pip requirement… requirements.txt:6
MED AGT007 localStorage write failures are swallowed silently media_platform/tieba/test_data/note_com…:810
MED AGT007 localStorage write failures are swallowed silently api/webui/assets/index-DvClRayq.js:234
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED JRN003 Frontend API reference is not matched by discovered backend routes api/webui/assets/index-DvClRayq.js:239
MED AUC002 [AUC002] Low visible authorization coverage in route inventory: Only 13.3% of discovered …
MED AUC012 [AUC012] FastAPI interactive docs may be exposed by framework defaults: FastAPI exposes /…
MED AGT012 Agent control bridge may listen on a network interface without visible auth media_platform/tieba/test_data/note_det…:76
MED AGT012 Agent control bridge may listen on a network interface without visible auth media_platform/tieba/test_data/note_com…:76
MED AGT012 Agent control bridge may listen on a network interface without visible auth api/main.py:21
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… api/routers/crawler.py:59
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… api/routers/crawler.py:53
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… api/routers/crawler.py:40
MED AUC004 [AUC004] Admin route does not show super_admin separation: An administrative route was de… api/routers/crawler.py:27
LOW COMP001 [COMP001] High cognitive complexity: Function `check_environment` has cognitive complexit… api/main.py:85
LOW AIC003 Duplicated implementation block across source files store/xhs/_store_impl.py:258
LOW AIC003 Duplicated implementation block across source files store/weibo/_store_impl.py:214
LOW AIC003 Duplicated implementation block across source files store/weibo/_store_impl.py:199
LOW AIC003 Duplicated implementation block across source files store/weibo/_store_impl.py:16
LOW AIC003 Duplicated implementation block across source files store/tieba/_store_impl.py:191
LOW AIC003 Duplicated implementation block across source files store/tieba/_store_impl.py:176
LOW AIC003 Duplicated implementation block across source files store/tieba/_store_impl.py:17
LOW AIC003 Duplicated implementation block across source files store/kuaishou/_store_impl.py:163
LOW AIC003 Duplicated implementation block across source files store/kuaishou/_store_impl.py:133
LOW AIC003 Duplicated implementation block across source files store/douyin/_store_impl.py:115
LOW AIC003 Duplicated implementation block across source files media_platform/zhihu/login.py:13
LOW AIC003 Duplicated implementation block across source files media_platform/zhihu/login.py:12
LOW AIC003 Duplicated implementation block across source files media_platform/zhihu/core.py:347
LOW AIC003 Duplicated implementation block across source files media_platform/zhihu/core.py:327
LOW AIC003 Duplicated implementation block across source files media_platform/zhihu/core.py:91
LOW AIC003 Duplicated implementation block across source files media_platform/xhs/xhs_sign.py:6
LOW AIC003 Duplicated implementation block across source files media_platform/xhs/login.py:14
LOW AIC003 Duplicated implementation block across source files media_platform/xhs/login.py:13
LOW AIC003 Duplicated implementation block across source files media_platform/xhs/core.py:342
LOW AIC003 Duplicated implementation block across source files media_platform/xhs/core.py:329
LOW AIC003 Duplicated implementation block across source files media_platform/xhs/core.py:76
LOW AIC003 Duplicated implementation block across source files media_platform/xhs/client.py:203
LOW AIC003 Duplicated implementation block across source files media_platform/weibo/login.py:12
LOW AIC003 Duplicated implementation block across source files media_platform/weibo/core.py:288
LOW AIC003 Duplicated implementation block across source files media_platform/tieba/login.py:12
LOW AIC003 Duplicated implementation block across source files media_platform/tieba/core.py:499
LOW AIC003 Duplicated implementation block across source files media_platform/tieba/core.py:479
LOW AIC003 Duplicated implementation block across source files media_platform/kuaishou/login.py:12
LOW AIC003 Duplicated implementation block across source files media_platform/kuaishou/core.py:294
LOW AIC003 Duplicated implementation block across source files media_platform/douyin/core.py:273
LOW AUC005 [AUC005] No authorization-focused tests detected: No test files with common authorization…
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. store/douyin/_store_impl.py:233
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… store/xhs/__init__.py:82
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… proxy/proxy_mixin.py:72
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… proxy/proxy_ip_pool.py:83
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… api/services/crawler_manager.py:78
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… api/routers/websocket.py:149
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… api/routers/data.py:49
Reset to top 5 155 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `NanmiCoder/MediaCrawler`

**Score: 72/100 (B+)**  ·  159 findings  ·  scanned 2026-06-05 11:42 UTC  ·  27,243 LOC

| Severity | Count |
|---|---|
| CRITICAL | 12 |
| HIGH | 58 |
| MEDIUM | 46 |
| LOW | 32 |

📊 [Full filterable report](https://repobility.com/scan/0d236f0c-360d-4752-8c2f-e650610910e6/)  ·  ![scorecard](https://repobility.com/scan/0d236f0c-360d-4752-8c2f-e650610910e6/report.png?v=1780659774-s2)

### Top findings

1. **CRITICAL** `MINED107` — Missing import: `json` used but not imported
   `store/xhs/__init__.py:225` · ✓ Repobility
2. **CRITICAL** `MINED107` — Missing import: `stat` used but not imported
   `api/routers/data.py:54` · ✓ Repobility
3. **CRITICAL** `MINED107` — Missing import: `platform` used but not imported
   `api/routers/data.py:80` · ✓ Repobility
4. **CRITICAL** `MINED107` — Missing import: `queue` used but not imported
   `api/routers/websocket.py:68` · ✓ Repobility
5. **CRITICAL** `MINED107` — Missing import: `platform` used but not imported
   `cmd_arg/arg.py:349` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/0d236f0c-360d-4752-8c2f-e650610910e6/_
Megaproject â high spam risk
Could not determine 'NanmiCoder/MediaCrawler' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.