Skip to main content

Automate online browsing using python and AI

Project description

PyBA - Python Browser Automations

This is a no-code browser automation software written in python. It can visit any website, automate testing, repetitive tasks, form filling and more. This library is specifically built for more exploratory analysis than EXACT inputs (though it supports both through different modes).

Idea

This library will allow you to run an inhouse playwright instance and automate any task. These tasks can be related to web-scraping, OSINT (OpenSource INTelligence) etc.

This is built on top of playwright and it requires either VertexAI or OpenAI API keys to do the "thinking" part of the process. The library also contains support to automatically login to your social media sites (you'll have to provide a username and password! Check the the usage section for more on that) so you can use it for SOCmint or simple automated social media interactions as well.

We optionally allow you to enable tracing, the logs of which you can see on playwright's traceviewer. We also support logging and config files should you want to change any defaults

Why?

The need for such a software came when I was building a fully automated intelligence framework. The goal is to replicate everything a human can do on the internet, and automate that process. This tool will employ all sorts of anti-bot detection and anti-fingerprinting techniques (I am still learning about them...) and will make sure that nothing halts the automation.

Installation

The library can be installed via pip:

pip install py-browser-automation

or you can install it from the source:

git clone https://github.com/FauvidoTechnologies/PyBrowserAutomation/
cd PyBrowserAutomation
pip install .

Usage

[!NOTE] For more detailed instructions visit the docs

  • Import the main engine using:
from pyba import Engine
  • Set the right configurations depending on which model you want to use:

For VertexAI

engine = Engine(vertexai_project_id="", vertexai_server_location="", handle_dependencies=False)

For OpenAI

engine = Engine(openai_api_key="", handle_dependencies=False)
  • Set handle_dependencies to True if you're running this for the first time and install the playwright browsers and other dependencies by following the instructions.

  • Run the sync endpoint using engine.sync_run()

engine.sync_run(prompt="open instagram")

For more use cases, check out the examples direcrtory.

Project details


Download files

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

Source Distribution

py_browser_automation-0.1.8.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

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

py_browser_automation-0.1.8-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file py_browser_automation-0.1.8.tar.gz.

File metadata

  • Download URL: py_browser_automation-0.1.8.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for py_browser_automation-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7207357751d40b94fdc850f29ec9867417cb3ac90306c565702432a3fdc78bc0
MD5 dd9e65f2f051edee46e1de52944c12c1
BLAKE2b-256 de590e50b661d7d317e2442d96d0b9b77d85bac0df5f9703adb53dfa518303f3

See more details on using hashes here.

File details

Details for the file py_browser_automation-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for py_browser_automation-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a95a40b7fc6c77b387a7dec6203e5f166cfdfbd31896d95d6af1280fa2c2ff79
MD5 7e115b83b3edb36e3399594df47ce454
BLAKE2b-256 bfb0682ded59bec317b1e23416dcfbd1f8df50c77e2c7355db393c0f991a2dc7

See more details on using hashes here.

Supported by

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