Skip to content

sofiaashaikh/cpp-anomaly-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

c++ network anomaly scraper ✩°。⋆

a zero-dependency, low-latency c++ ingestion engine. designed to parse massive network datasets and flag anomalous behavior using strict rule-based heuristics.

built to mirror python/pandas data manipulation logic, but executed at hardware-level speeds to demonstrate memory-safe data structuring and $O(1)$ lookups.

core architecture

  • memory management: uses std::vector with pre-allocated memory reserves to completely eliminate dynamic reallocation lag during data ingestion.
  • rapid string parsing: implements native std::stringstream for lightweight, low-level csv tokenization.
  • algorithmic efficiency: utilizes std::unordered_map for instant $O(1)$ time complexity when tracking network traffic volumes per ip.
  • aesthetic ui: features a minimalist, 24-bit truecolor terminal interface mapped with custom soft lavender, sage green, and navy rgb values.

build & execute

requires a native c++ compiler (g++).

# 1. compile and generate the mock dataset
g++ src/generate_mock.cpp -o build/generate_mock
./build/generate_mock

# 2. run the anomaly engine
g++ src/scraper.cpp -o build/scraper
./build/scraper

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages