Metadata-Version: 2.4
Name: parsagon
Version: 0.17.1
Summary: Allows you to create browser automations with natural language
Author-email: Sandy Suh <sandy@parsagon.io>
Project-URL: Homepage, https://parsagon.io
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: selenium==4.9.1
Requires-Dist: lxml[html_clean]==5.3.2
Requires-Dist: httpx>=0.27.0
Requires-Dist: psutil==7.0.0
Requires-Dist: rich==13.6.0
Requires-Dist: PyVirtualDisplay==3.0
Requires-Dist: selenium-wire==5.1.0
Requires-Dist: cssselect==1.2.0
Requires-Dist: undetected-chromedriver==3.5.5
Requires-Dist: webdriver-manager==4.0.2
Requires-Dist: jsonpath-ng==1.5.3
Requires-Dist: simplejson==3.19.1
Requires-Dist: pypdf==5.9.0
Requires-Dist: python-dateutil==2.9.0.post0
Requires-Dist: html2text==2024.2.26
Requires-Dist: feedparser==6.0.11
Provides-Extra: dev
Requires-Dist: pytest==7.3.2; extra == "dev"
Requires-Dist: pytest-mock==3.11.1; extra == "dev"
Requires-Dist: pre-commit==3.6.0; extra == "dev"

# parsagon

Parsagon allows you to create browser automations with natural language. You can create automations that fill out forms, scrape web pages, and much more, all without writing code. Here's a brief overview of how to get started:

## Requirements

To use Parsagon, you must have an up-to-date version of Google Chrome and Python >= 3.8

## Installation

To get started, install the Parsagon python package:

`pip install parsagon`

Then run

`parsagon setup`

and copy-paste your API key when prompted.

You can view your API key by logging in and going to <https://parsagon.io/settings>

## Usage

From command line:

```
# Create a program
parsagon create

# Run a program
parsagon run 'My program'

# List your programs
parsagon detail

# Delete a program
parsagon delete 'My program'
```

From Python:
```
import parsagon

# Create a program
parsagon.create('Go to https://www.google.com/. Type "the meaning of life" into the search bar and hit enter. Scroll down and click the "More results" button 3 times. Scrape data in the format [{"search result title": "str", "link": "link"}].')

# Run a program
parsagon.run("My program")

# Run a program multiple times
parsagon.batch_runs("My batch name", "My program", runs=[{"variable_name": "value1"}, {"variable_name": "value2"}, ...])

# List your programs
parsagon.detail()

# Delete a program
parsagon.delete("My program")
```

See [the docs](https://parsagon.io/docs/pipelines/overview) for more information.
