How metakrist/business_scraper works
This is a single-file Selenium business-directory scraper. Its workflow starts with a user launching the script and manually solving the CAPTCHA, then searches and paginates directory results, extracts business and registered-agent details, tracks progress, and writes CSV or JSON output. The README documents these capabilities, while the sampled source shows browser setup, CAPTCHA prompting, progress-file access, and output serialization. Some orchestration and profile-extraction code is omitted, so those documented stages are represented without asserting unshown calls.
Main entry points: scraper.py Scraper Workflow
Components 11
Collection
- Scraper Workflow
scraper.py - Chrome Browser
- Business Directory
- Business Profiles
scraper.py - CAPTCHA Prompt
scraper.py
Progress State
- Resume Progress
scraper.py
Output
- Output Naming
scraper.py - CSV Writer
scraper.py - JSON Writer
scraper.py - Output Files
Other components
- User
Connections 12
- User → Scraper Workflow: launches
README.md - Scraper Workflow → Chrome Browser: controls
scraper.py - Scraper Workflow → CAPTCHA Prompt: prompts
scraper.py - User → CAPTCHA Prompt: solves manually
README.md - Scraper Workflow → Business Directory: searches and paginates
README.md - Scraper Workflow → Business Profiles: extracts records
README.md - Scraper Workflow → Resume Progress: reads and writes
scraper.py - Scraper Workflow → Output Naming: generates name
scraper.py - Scraper Workflow → CSV Writer: selects format
scraper.py - Scraper Workflow → JSON Writer: selects format
scraper.py - CSV Writer → Output Files: writes CSV
README.md - JSON Writer → Output Files: writes JSON
README.md