Skip to content

v1.1.0

Choose a tag to compare

@rayruizhiliao rayruizhiliao released this 20 Nov 20:09
· 40 commits to main since this release
8d57c49

Changes in v1.1.0

🚀 Major Changes

PyPI Package Release

  • Package is now available on PyPI: pip install web-hacker
  • Restructured as a proper Python package with web_hacker/ namespace
  • Added CLI entry points: web-hacker-monitor, web-hacker-discover, web-hacker-execute

New High-Level SDK Interface

  • Added WebHacker class for simplified usage:
  from web_hacker import WebHacker
  hacker = WebHacker()
  with hacker.monitor_browser(output_dir="./captures"):
      pass
  routine = hacker.discover_routine(task="Search for flights", cdp_captures_dir="./captures")
  result = hacker.execute_routine(routine, parameters={"origin": "NYC", "destination": "LAX"})

✨ New Features

  • Quickstart Script: Interactive Python script (quickstart.py) to automate the entire workflow
  • Session Storage Interpolation: Support for {{sessionStorage:...}}, {{localStorage:...}}, {{cookie:...}}, and {{meta:...}} placeholders in fetch URLs
  • Network Improvements: Added support for HTML responses, data cleaning, and retry loop for failed requests
  • Human Interactions: Added support for executing GUI interactions

🔧 Improvements

  • Improved task input experience in discovery workflow
  • Better error handling and graceful exit
  • Enhanced logging and messaging
  • Updated documentation and README

🔄 Breaking Changes

Import Paths Changed:

Before

from src.config import Config
python scripts/browser_monitor.py

After

from web_hacker.config import Config
web-hacker-monitor

Note: Core functionality unchanged. Only import paths and package structure changed.

📦 Installation

pip install web-hacker

View on PyPI: https://pypi.org/project/web-hacker/1.1.0/