No description
  • Python 93.1%
  • Just 6.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-03-25 22:28:36 -04:00
.forgejo/workflows Initial scaffold for fw-nodes-scrapers 2026-03-24 23:23:41 -04:00
fw_nodes_scrapers switch to using headless2 2026-03-25 22:24:23 -04:00
tests Initial scaffold for fw-nodes-scrapers 2026-03-24 23:23:41 -04:00
.gitignore Initial scaffold for fw-nodes-scrapers 2026-03-24 23:23:41 -04:00
justfile Initial scaffold for fw-nodes-scrapers 2026-03-24 23:23:41 -04:00
pyproject.toml Add Google Search node implementation 2026-03-25 01:13:42 -04:00
README.md update the readme with the new defaults 2026-03-25 22:28:36 -04:00

fw-nodes-scrapers

Web scraping nodes for Flowire workflow automation. Uses SeleniumBase with undetected-chromedriver for stealth browsing.

Installation

# Install from PyPI (when published)
pip install fw-nodes-scrapers

# For local development
cd flowire-app/backend
uv pip install -e ../../fw-nodes-scrapers

Any installed package with flowire.nodes entry points is loaded automatically — no env var needed.

Nodes

Navigates to Google, types a query with human-like keystroke timing, submits the form, waits for results, and returns the raw HTML page source.

Inputs:

Field Type Default Description
query string required Search query to submit to Google
actions list [] Browser actions to run after page load (see below)
browser_options dict {} Override SeleniumBase SB() kwargs (see below)

Outputs:

Field Type Description
html string Raw HTML of the search results page
url string Final URL after all actions completed

Browser Actions

Actions run sequentially after the search results page loads, before the page source is captured. Each action is a JSON object with an "action" key.

Action Fields Description
click selector Click an element matching the CSS selector
type selector, text Type text into an element matching the CSS selector
scroll — Scroll to the bottom of the page
scroll_to selector Scroll an element into view (smooth)
wait seconds Wait for a fixed number of seconds
wait_for selector Wait up to 10s for an element to appear
evaluate script Run arbitrary JavaScript on the page

Example:

[
  {"action": "wait", "seconds": 2},
  {"action": "scroll"},
  {"action": "wait_for", "selector": "#botstuff"},
  {"action": "click", "selector": "a#pnnext"},
  {"action": "wait", "seconds": 3}
]

Browser Options

Override the default SeleniumBase SB() keyword arguments. Defaults are uc=True and headless2=True. Any key you provide overrides the default.

Example:

{
  "headless2": false,
  "locale_code": "de",
  "proxy": "socks5://user:pass@host:port"
}

See the SeleniumBase SB() docs for all available options.

Development

just install       # Install dependencies
just lint          # Run linter
just lint-fix      # Auto-fix lint issues
just format        # Format code
just test          # Run tests
just test-cov      # Run tests with coverage