Python SDK to automate the EroSolar AI Browser - control a visible browser with AI
Project description
EroSolar AI Browser SDK
Control the EroSolar AI Browser from Python. Unlike Selenium/Playwright, you see everything happening in real-time in a visible browser window, powered by GPT-5.2.
Installation
pip install erosolar-browser
Quick Start
-
Download and run the EroSolar AI Browser from americaisfinallyback.com/downloads
-
Write your automation script:
from erosolar_browser import Browser
# Connect to the running browser
browser = Browser()
# Navigate to a page
browser.navigate("https://example.com")
# Use AI to do anything - just describe what you want
browser.ai("fill out the contact form with my info and submit it")
# Or use direct commands
browser.click("Submit")
browser.fill("email", "me@example.com")
Features
- Visual Automation: See everything the browser does in real-time
- AI-Powered: Just describe what you want in plain English
- Simple API: Navigate, click, fill, scroll - all with one line
- Congress Campaign: Built-in tools for civic engagement
API Reference
Browser Class
from erosolar_browser import Browser
browser = Browser(host="localhost", port=9222)
# Navigation
browser.navigate("https://example.com")
browser.back()
browser.forward()
browser.reload()
# Page Info
status = browser.status()
page = browser.get_page() # Returns URL, title, text, forms, buttons
# Interactions
browser.click("Button Text")
browser.fill("field_name", "value")
browser.select("dropdown", "option")
browser.scroll("down")
# AI Commands - describe what you want
browser.ai("search for weather in Boston")
browser.ai("fill out this form with name John Doe, email john@example.com")
browser.ai("click the login button and enter credentials")
# Control
browser.stop() # Stop current AI task
browser.wait(5) # Wait 5 seconds
Congress Campaign
from erosolar_browser import Browser, CongressCampaign
browser = Browser()
campaign = CongressCampaign(browser)
# Set your info
campaign.set_user_info(
name="Your Name",
address="123 Main St",
city="Boston",
state="MA",
zip="02134",
phone="555-1234",
email="you@example.com"
)
# Contact a single member
campaign.contact_member("Seth Moulton", topic="climate change")
# Or run a full campaign
members = ["Seth Moulton", "Elizabeth Warren", "Ed Markey"]
results = campaign.run_campaign(members, topic="healthcare", delay=30)
How It Works
The SDK connects to the EroSolar AI Browser's API server (runs on port 9222 by default). The browser uses GPT-5.2 to understand your commands and execute them visually.
Unlike headless automation:
- You see everything happening
- The AI can handle complex forms and CAPTCHAs
- Natural language commands - no need to find CSS selectors
Requirements
- Python 3.8+
- EroSolar AI Browser running (download from website)
- OpenAI API key configured in the browser
License
MIT License - Use freely for civic engagement and automation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file erosolar_browser-1.0.2.tar.gz.
File metadata
- Download URL: erosolar_browser-1.0.2.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83608793513fe132de4c78dc07ef861b950c3bb4b09af9401712614406edfaf6
|
|
| MD5 |
c55c84731317f172434dbdad315200a2
|
|
| BLAKE2b-256 |
5b5840c15db446eca622ef9ef2a296eb4fc5aa9c0bfd2043ceeae090cc92f406
|
File details
Details for the file erosolar_browser-1.0.2-py3-none-any.whl.
File metadata
- Download URL: erosolar_browser-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0b64edbffb87d4d08c7578fdfbf417449546d350c284753dec31f3703867655
|
|
| MD5 |
f1a8b3c7edbbf79b72074ac6bd9c047f
|
|
| BLAKE2b-256 |
f331d59fb032a1eec659685ff007ea5e70ecc18ecf18bf5a696b5b16cf9b4706
|