Python ProxyPool for web spider
This report summarizes scanner evidence for jhao104/proxy_pool, a Python project with 23,758 GitHub stars. SynthScan examined 7,462 lines of code across 87 source files, recording 147 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 25.2 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 101 finding(s).
Are imports declared and package/API names verified? 22 finding(s).
Are wrappers, guards, and repeated structures necessary? 122 finding(s).
Which changes need focused human review? 147 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 147 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/unit/test_fetcher_sources.py | 75 | def test_all_fetchers_have_name_url_enabled(self): | CODE |
| LOW⚡ | tests/unit/test_fetcher_sources.py | 83 | def test_all_fetchers_subclass_base(self): | CODE |
| LOW⚡ | tests/unit/test_fetcher_sources.py | 89 | def test_all_fetchers_have_fetch_method(self): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 256 | def test_fetch_old_returns_empty(self, mock_dt, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 272 | def test_fetch_old_cross_day_returns_empty(self, mock_dt, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 312 | def test_fetch_empty_table_returns_empty(self, mock_requests): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 340 | def test_fetch_filters_non_cn(self, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 352 | def test_fetch_filters_non_http(self, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 381 | def test_fetch_empty_data_returns_empty(self, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 405 | def test_fetch_empty_data_returns_empty(self, mock_wr): | CODE |
| LOW | tests/unit/test_fetcher_sources.py | 412 | def test_fetch_exception_returns_empty(self, mock_wr): | CODE |
| LOW | tests/unit/test_web_request.py | 124 | def test_empty_content_returns_none(self): | CODE |
| LOW | tests/unit/test_web_request.py | 130 | def test_valid_html_returns_element(self): | CODE |
| LOW⚡ | tests/unit/test_web_request.py | 143 | def test_returns_response_text(self): | CODE |
| LOW⚡ | tests/unit/test_web_request.py | 153 | def test_valid_json_returns_dict(self): | CODE |
| LOW⚡ | tests/unit/test_web_request.py | 159 | def test_invalid_json_returns_empty_dict(self): | CODE |
| LOW | tests/unit/test_web_request.py | 171 | def test_user_agent_returns_string(self): | CODE |
| LOW | tests/unit/test_web_request.py | 177 | def test_header_contains_user_agent(self): | CODE |
| LOW⚡ | tests/unit/test_db_client.py | 38 | def test_redis_uri_no_password(self): | CODE |
| LOW⚡ | tests/unit/test_db_client.py | 46 | def test_ssdb_uri_no_password(self): | CODE |
| LOW⚡ | tests/unit/test_db_client.py | 52 | def test_unknown_db_type_raises(self): | CODE |
| LOW | tests/unit/test_scheduler.py | 41 | def test_fetcher_yields_go_to_queue(self, mock_fetcher_cls, mock_checker): | CODE |
| LOW | tests/unit/test_scheduler.py | 61 | def test_triggers_fetch_when_pool_low(self, mock_ph_cls, mock_checker, mock_fetch): | CODE |
| LOW | tests/unit/test_scheduler.py | 76 | def test_skips_fetch_when_pool_sufficient(self, mock_ph_cls, mock_checker, mock_fetch): | CODE |
| LOW | tests/unit/test_fetch.py | 28 | def test_returns_correct_path(self): | CODE |
| LOW | tests/unit/test_fetch.py | 67 | def test_import_exception_returns_none(self, mock_importlib, mock_mtime): | CODE |
| LOW⚡ | tests/unit/test_fetch.py | 86 | def test_filters_enabled_only(self): | CODE |
| LOW⚡ | tests/unit/test_fetch.py | 93 | def test_filters_exclude_list(self): | CODE |
| LOW⚡ | tests/unit/test_fetch.py | 103 | def test_returns_sorted_by_name(self): | CODE |
| LOW | tests/unit/test_fetch.py | 132 | def test_merges_duplicate_sources(self): | CODE |
| LOW | tests/unit/test_check.py | 28 | def test_validator_http_pass_https_pass(self, mock_pv_cls, mock_conf_cls): | CODE |
| LOW | tests/unit/test_check.py | 54 | def test_validator_http_pass_https_fail(self, mock_pv_cls, mock_conf_cls): | CODE |
| LOW | tests/unit/test_check.py | 90 | def test_validator_fail_count_decrement(self, mock_pv_cls, mock_conf_cls): | CODE |
| LOW | tests/unit/test_check.py | 109 | def test_validator_raw_sets_region(self, mock_pv_cls, mock_conf_cls, mock_region): | CODE |
| LOW | tests/unit/test_check.py | 128 | def test_validator_use_skips_region(self, mock_pv_cls, mock_conf_cls, mock_region): | CODE |
| LOW | tests/unit/test_check.py | 148 | def test_success_returns_country_code(self, mock_wr_cls): | CODE |
| LOW | tests/unit/test_check.py | 159 | def test_exception_returns_error(self, mock_wr_cls): | CODE |
| LOW | tests/unit/test_check.py | 198 | def test_ifraw_new_proxy_gets_put(self): | CODE |
| LOW | tests/unit/test_check.py | 210 | def test_ifraw_existing_proxy_skipped(self): | CODE |
| LOW | tests/unit/test_check.py | 222 | def test_ifraw_failed_proxy_not_put(self): | CODE |
| LOW | tests/unit/test_check.py | 248 | def test_ifuse_fail_exceeds_max_deleted(self): | CODE |
| LOW | tests/unit/test_check.py | 263 | def test_ifuse_fail_below_max_kept(self): | CODE |
| LOW | tests/unit/test_proxy_handler.py | 53 | def test_get_returns_none_when_empty(self): | CODE |
| LOW | tests/unit/test_proxy_handler.py | 90 | def test_pop_returns_none_when_empty(self): | CODE |
| LOW | tests/unit/test_proxy_handler.py | 116 | def test_delete_delegates_to_db(self): | CODE |
| LOW | tests/unit/test_proxy_handler.py | 156 | def test_exists_delegates_to_db(self): | CODE |
| LOW⚡ | tests/unit/test_config.py | 63 | def test_verify_timeout_default(self, conf): | CODE |
| LOW⚡ | tests/unit/test_config.py | 66 | def test_max_fail_count_default(self, conf): | CODE |
| LOW⚡ | tests/unit/test_config.py | 69 | def test_pool_size_min_default(self, conf): | CODE |
| LOW⚡ | tests/unit/test_config.py | 75 | def test_fetcher_exclude_is_list(self, conf): | CODE |
| LOW | tests/unit/test_config.py | 91 | def test_verify_timeout_override(self): | CODE |
| LOW | tests/unit/test_config.py | 96 | def test_max_fail_count_override(self): | CODE |
| LOW | tests/unit/test_validator.py | 49 | def test_invalid_proxy_format(self, proxy): | CODE |
| LOW | tests/unit/test_validator.py | 68 | def test_invalid_returns_false(self, proxy): | CODE |
| LOW | tests/unit/test_validator.py | 88 | def test_returns_false_on_exception(self, mock_head): | CODE |
| LOW | tests/unit/test_validator.py | 113 | def test_returns_false_on_exception(self, mock_head): | CODE |
| LOW | tests/unit/test_base_fetcher.py | 36 | def test_ip_port_in_html_text(self): | CODE |
| LOW | tests/unit/test_base_fetcher.py | 100 | def test_fetch_raises_not_implemented(self): | CODE |
| LOW | tests/unit/test_proxy.py | 81 | def test_to_json_is_valid_json(self): | CODE |
| LOW | tests/unit/test_proxy.py | 87 | def test_create_from_json_roundtrip(self): | CODE |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | util/six.py | 28 | CODE | |
| LOW | util/six.py | 30 | CODE | |
| LOW | util/six.py | 41 | CODE | |
| LOW | util/six.py | 41 | CODE | |
| LOW | util/six.py | 43 | CODE | |
| LOW | util/six.py | 43 | CODE | |
| LOW | tests/unit/test_web_request.py | 15 | CODE | |
| LOW | tests/unit/test_web_request.py | 16 | CODE | |
| LOW | tests/unit/test_scheduler.py | 16 | CODE | |
| LOW | tests/unit/test_fetch.py | 23 | CODE | |
| LOW | tests/unit/test_check.py | 15 | CODE | |
| LOW | tests/unit/test_check.py | 16 | CODE | |
| LOW | tests/unit/test_check.py | 17 | CODE | |
| LOW | tests/unit/test_proxy_handler.py | 15 | CODE | |
| LOW | tests/unit/test_validator.py | 15 | CODE | |
| LOW | tests/unit/test_proxy.py | 16 | CODE | |
| LOW | tests/unit/test_log_handler.py | 16 | CODE | |
| LOW | tests/unit/test_log_handler.py | 17 | CODE | |
| LOW | tests/unit/test_launcher.py | 15 | CODE | |
| LOW | tests/integration/test_redis_client.py | 17 | CODE | |
| LOW | tests/integration/test_redis_client.py | 18 | CODE | |
| LOW | tests/api/test_proxy_api.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | handler/__init__.py | 0 | ------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 ----- | STRING |
| HIGH | api/__init__.py | 0 | ------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 ----- | STRING |
| HIGH | util/lazyProperty.py | 0 | ------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 ----- | STRING |
| HIGH | util/singleton.py | 0 | ------------------------------------------------- file name: singleton description : author : jhao date: 2016/12/3 ----- | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 155 | except Exception: | CODE |
| LOW | util/webRequest.py | 79 | except Exception as e: | CODE |
| LOW | util/webRequest.py | 106 | except Exception as e: | CODE |
| LOW | util/webRequest.py | 131 | except Exception as e: | CODE |
| MEDIUM | util/webRequest.py | 128 | def json(self): | CODE |
| LOW | fetcher/sources/proxifly.py | 36 | except Exception as e: | CODE |
| LOW | fetcher/sources/scdn.py | 61 | except Exception as e: | CODE |
| LOW | fetcher/sources/daili66.py | 35 | except Exception as e: | CODE |
| LOW | fetcher/sources/geonode.py | 43 | except Exception as e: | CODE |
| LOW | fetcher/sources/roundproxies.py | 36 | except Exception as e: | CODE |
| LOW | fetcher/sources/docip.py | 33 | except Exception as e: | CODE |
| LOW | docs/api.md | 48 | except Exception: | CODE |
| LOW | docs/extending/validator.md | 49 | except Exception as e: | CODE |
| LOW | docs/extending/validator.md | 63 | except Exception as e: | CODE |
| LOW | helper/fetch.py | 52 | except Exception as e: | CODE |
| LOW | helper/fetch.py | 114 | except Exception as e: | CODE |
| LOW | helper/validator.py | 67 | except Exception as e: | CODE |
| LOW | helper/validator.py | 79 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | handler/logHandler.py | 40 | except FileExistsError: | CODE |
| HIGH | tests/unit/test_base_fetcher.py | 105 | except NotImplementedError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | db/ssdbClient.py | 72 | CODE | |
| LOW | db/redisClient.py | 72 | CODE | |
| LOW | helper/proxy.py | 20 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fetcher/sources/scdn.py | 32 | CODE | |
| LOW | fetcher/sources/freevpnnode.py | 27 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setting.py | 61 | MAX_FAIL_COUNT = 0 | COMMENT |