No description
- Python 93.1%
- Just 6.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| fw_nodes_scrapers | ||
| tests | ||
| .gitignore | ||
| justfile | ||
| pyproject.toml | ||
| README.md | ||
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
Google Search
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