Live Production Automation Python Playwright + Google Sheets

Spokane Accela Citizen Access (ACA) Permit Scraper

High-throughput extraction of ~2,400 municipal permits with dynamic schema alignment and postback handling.

Back to Portfolio
Target Volume
~2,400 Records
01/01/2025 to Present
WAF Bypass
Imperva Incapsula
Stealth Context & Cookie Persistence
Postback Engine
ASP.NET WebForms
__VIEWSTATE & __doPostBack
Sync Destination
Google Sheets API
Live gspread Batch Append + CSV

Automated Extraction Architecture

1. Search & List Pagination

Executes automated search across target modules (Roofing, Siding, Window). Dynamically monitors ASP.NET __VIEWSTATE updates during pagination to ensure zero page skips or dropouts.

2. Nested Accordion Extraction

Clicks into each permit record, extracts the Licensed Professional (placed after Status), and expands More Details > Application Information to harvest all key-value pairs without dropping unmapped fields.

3. Dynamic Schema Alignment

Harmonizes variable custom fields across permit types into a unified matrix. Implements rate limiting (1.5s jitter), automated duplicate prevention by Record Number, and logs 3x retry errors to Failed_Logs.

Extracted Production Sample (Batch Run)

Aligned records showing contractor capture, missing field tolerance, and dynamic accordion attributes.

Record # Date Status Licensed Professional Type Description Valuation Structure Type Specific Attribute Parcel #
B2501482 01/06/2025 Issued INLAND NORTHWEST ROOFING LLC Roofing Tear-off and re-roof single family dwelling with comp shingles $14,500 Single Family Architectural Shingle (26 Sq) 35184.0210
B2501509 01/08/2025 Finaled APEX EXTERIORS INC Siding Replacement of exterior siding with fiber cement lap siding $22,400 Single Family Fiber Cement (2,100 sq ft) 35291.1405
B2501533 01/10/2025 Issued RENEWAL BY ANDERSEN SPOKANE Window Retrofit replacement of 9 vinyl windows like-for-like $16,800 Single Family 9 Windows (U-Factor ≤ 0.28) 25053.0812
B2501570 01/14/2025 Under Review (Owner-Builder / Blank) Roofing Re-roof garage and main dwelling, replace damaged decking $11,200 Residential Detached 3-Tab Asphalt (18 Sq) 35092.3301
B2501612 01/18/2025 Approved CHAMPION WINDOW CO Window Replace 6 bedroom windows with low-E Argon double hung $12,100 Duplex 6 Windows (Egress: Yes) 35144.1109
B2501655 01/22/2025 Issued SPOKANE PRO ROOFING CORP Roofing Commercial steep slope asphalt shingle replacement $38,000 Multi-Family Architectural Shingle (54 Sq) 35322.0914