Data Automation & Trade Compliance Project

HS Code Trade Compliance Data Extraction System

Designed and developed an automated data pipeline that retrieves tariff rates and import licensing requirements from Indonesia's National Single Window (INSW) portal. The solution reduces repetitive manual lookups by collecting, structuring, and exporting regulatory data into Excel and JSON formats for operational reporting and analysis.

Overview

Browser automation workflow for researching tariff and licensing information from INSW and exporting structured Excel / JSON outputs.

Problem

HS Code lookups were repetitive and time-consuming when handled manually across many products.

My Role

Designed and built the automation workflow, extraction logic, and output structure with AI-assisted support.

Tools & Technologies

  • Python
  • Playwright
  • Regular Expressions
  • OpenPyXL
  • JSON serialization

Workflow / Approach

Incomplete HS codes are read from Excel, browser automation searches the INSW portal, and the extracted regulatory values are structured for export.

Key Features

  • HS Code lookup automation for tariff and licensing research
  • Structured Excel and JSON outputs for downstream analysis
  • Regex-based extraction of unstructured regulatory data
  • Skipping already-complete rows to reduce repeat work

Business / Analytical Value

The workflow reduces repetitive regulatory lookups, improves consistency, and creates a structured output that can support import planning, compliance review, and reporting.

What This Demonstrates

Browser automation, ETL-style data extraction, structured reporting, and practical process improvement.

Relevant Roles

  • Data Analyst
  • Business Analyst
  • Operations Analyst
  • Automation Analyst

Limitations / Confidentiality

This page uses a public-safe summary only. It does not expose private company data, credentials, or internal trade records.

Links

The full implementation, documentation, and project structure are available on GitHub.


View Repository

Repository includes:

  • Python automation script
  • Playwright browser automation workflow
  • Regex extraction logic
  • Excel processing pipeline
  • Sample output structure
  • Project documentation

System Workflow

End-to-end automation process used to collect HS Code tariff and import licensing information from INSW and transform it into structured datasets.

XLSX

Excel Input

User Enters HS Codes

v
PY

Python Script

Load Workbook & Detect Missing Data

->
BOT

Playwright

Browser Automation

->
INSW

INSW Portal

Trade Regulation Source

v
REGEX

Regex Engine

Extract Tariffs & Permits

->
JSON

JSON Object

Structured Data Model

v
TARIFF

HS Code Tariff

Tariff & Tax Data

->
PERMIT

HS Code Permit

Import Permit Data

->
SAVE

Save Outputs

Excel & JSON Files