fix: ASN dictionary pipeline + verbose bot-detector logging
- Fix dict_iplocate_asn: remove non-existent org/domain columns (4→4 cols) - Add CSV header to iplocate-ip-to-asn.csv (CSVWithNames format) - Replace org/domain dictGet calls with empty string literals in MV - Full 714K CIDR stub for complete ASN resolution in tests - Add header generation to generate_asn_data.py - Verbose bot-detector stdout: data summary, triage breakdown, model training details, scoring stats, browser classification, boxed results - Fix IPv6 filter in traffic seeder (_ips_from_cidrs) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@ -780,6 +780,7 @@ def main():
|
||||
|
||||
os.makedirs(os.path.dirname(ip_path) or ".", exist_ok=True)
|
||||
with open(ip_path, "w") as f:
|
||||
f.write("network,asn,country_code,name\n")
|
||||
for cidr, asn, country, as_name in cidr_rows:
|
||||
safe_name = as_name.replace(",", " ")
|
||||
f.write(f"{cidr},{asn},{country},{safe_name}\n")
|
||||
|
||||
Reference in New Issue
Block a user