Skip to main content

formharvester

Website: formharvester.com

FormHarvester is an AI-assisted form intelligence engine. It navigates the open web autonomously - executing searches, parsing page structure, extracting contact signals, and interacting with forms at the browser level. Built on async browser with stealth fingerprinting, proxy rotation, and a pluggable captcha solver interface.

The FormHarvester desktop app

How to run

Desktop app

Download formharvester.exe (built automatically on every release by .github/workflows/release-windows-exe.yml), then run it. Everything is configured in the app: no files to edit.

Python

pip install "formharvester[gui]"
formharvester gui      # desktop app
formharvester run      # headless harvest loop

The [gui] extra pulls in pywebview. Plain pip install formharvester gives you the CLI and the library without it.

Configuration

Settings live in formharvester.json, and each campaign (form-fill details plus the search queries) lives in profiles/<name>.json. Run formharvester settings path to see where they are stored. The location is the working directory when a config already exists there, otherwise ~/.formharvester; FORMHARVESTER_HOME overrides both.

Scraped emails, progress files and error logs are written to data/ and log/ inside that same directory.

From the GUI

formharvester gui opens three tabs: Run picks the active campaign and streams the live console, Campaign edits the form-fill details and query list, Settings covers the engine, Google pacing and the captcha solver.

From the CLI

formharvester settings show                     # print current settings
formharvester settings set engine.headless true # values are validated
formharvester settings set google.max_pages 5

formharvester profile list
formharvester profile create solar
formharvester profile use solar

formharvester run --profile solar --headless --max-pages 5

Flags on run override the saved settings for that run only.

Settings reference

Key Meaning
engine.send_form Submit the contact form once filled. Disable to save time.
engine.headless Run the browser hidden.
engine.skip_ads Skip ad results on Google Search.
engine.max_time Seconds allowed per website.
engine.generate_email_sources Also record the URL each email came from.
engine.debug_form Fill forms but never submit them.
google.start_page Google results page to start from.
google.max_pages Result pages to walk per query.
google.min_delay / google.max_delay Random delay range, in seconds, between searches.
google.captcha_sleep Minutes to pause after a Google captcha. 0 disables.
google.search_timer Minutes between search batches.
captcha.provider deathbycaptcha, 2captcha, none, or blank to auto-detect from the credentials you filled in.
captcha.twocaptcha_api_key 2captcha API key.
captcha.dbc_username / captcha.dbc_password DeathByCaptcha credentials.

Programmatic use (library API)

Since 2.4.0 FormHarvester ships a library API so you can drive the engine from your own code - no settings files or progress files required. The CLI is unchanged.

from formharvester import FormHarvester, FormFillDetails, HarvesterOptions

details = FormFillDetails(
    first_name="Jane", last_name="Doe",
    email="jane@example.com", phone="1234567890",
    subject="Enquiry", message="Hi, I'd like a quote.",
)

with FormHarvester(details, HarvesterOptions(send_form=True, headless=True)) as fh:
    result = fh.harvest("https://acme.com")
    print(result.status, result.submitted, result.emails)

    for r in fh.harvest_many(["https://a.com", "https://b.com"]):
        print(r.url, r.status)

result.status is one of SUBMITTED, FORM_NOT_FOUND, BUTTON_NOT_FOUND, VISITED, or ERROR - the same tokens the CLI writes to its progress file. One-shot helpers harvest_site(url, details) and harvest_sites(urls, details) are also available.

Package layout (2.4.0)

src/formharvester/
├── __init__.py          # public API (FormHarvester, FormFillDetails, …)
├── api.py               # library API
├── engine/              # Selenium browser engine + Chrome driver
├── scraper/             # Google search + email scraping
├── form_handler/        # contact-page discovery, field fill, submit
├── captcha/             # solver providers (DeathByCaptcha, 2captcha) + detection
├── settings.py          # JSON settings, profiles and file locations
├── cli/                 # typer commands (`formharvester`)
├── gui/                 # pywebview desktop app (web/ holds its HTML, CSS, JS)
└── utils/               # root-domain, email regex, link filters

Building the Windows executable (maintainers)

.github/workflows/release-windows-exe.yml builds formharvester.exe with PyInstaller and attaches it to the GitHub Release for any pushed v* tag (also runnable manually via workflow_dispatch). To build it locally:

uv sync --no-group dev --extra gui
uv pip install pyinstaller
uv run pyinstaller packaging/formharvester.spec

The executable launches the desktop app. The formharvester command installed by pip is the CLI.


This project is released under the MIT License. You are free to use, modify, and distribute this software, provided that the original copyright notice and license terms are included in all copies or substantial portions of the software.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

formharvester-2.4.0.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

formharvester-2.4.0-py3-none-any.whl (73.5 kB view details)

Uploaded Python 3

File details

Details for the file formharvester-2.4.0.tar.gz.

File metadata

  • Download URL: formharvester-2.4.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for formharvester-2.4.0.tar.gz
Algorithm Hash digest
SHA256 b907aee8603e31826e5c70452be7c8d4b685b05594c80c6e0062827f62e31515
MD5 e1ec36af523a7ee5fc86ccb83590d043
BLAKE2b-256 ab0d71d720a9730a3abbd7aab5ddd994164ee57d6077a1d51b1cce80e01a95c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for formharvester-2.4.0.tar.gz:

Publisher: publish.yml on dariomory/formharvester

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file formharvester-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: formharvester-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 73.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for formharvester-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c74db444b76e5b8b9221b5b08584252b23e6301e58424c6019c14beecb0756b
MD5 85f4d0f93a6025a038b63752e87db3eb
BLAKE2b-256 4bbbbf6165656a97a9bf7d91f846bb09344a8476322206caeee1a1bf259cbf55

See more details on using hashes here.

Provenance

The following attestation bundles were made for formharvester-2.4.0-py3-none-any.whl:

Publisher: publish.yml on dariomory/formharvester

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

2.4.1

2 files

This release

2.4.0 This release

2 files

2.3.0

2 files

2.2.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page