← All projects

2024

Netsat Scraper

A Rust crawler that collects every major’s NETSAT score for the Khon Kaen University quota round and saves it as JSON.

Key points

  • Browser automation with WebDriver
  • Crawls every faculty and major
  • Typed Rust structs exported to JSON
  • Async with Tokio

Overview

Netsat Scraper is a command-line tool written in Rust. It crawls the score data for every major in the Khon Kaen University quota round and writes it to a JSON file.

Problem

The score data for myNetsat had to be collected by hand. When a new admission round opened, updating it meant going through every major again.

Approach

I wrote a crawler that visits each major’s page, extracts the score data, and outputs structured JSON. Running cargo run produces the whole data set in one step.

Result

Collecting a full round of scores became a single command, and the JSON output is ready to feed into an API like NetsatAPI.

Learning

This was a practical way to learn Rust: HTTP requests, parsing HTML, and modelling data with types. It also taught me to design the output format first, so the data is easy to use later.

Tech

Languages