Browser-gpt-api
Interact with ChatGPT via an API running on a local server using Selenium under the hood.
What is it?
A python tool to help you send prompts to ChatGPT webpage and get response via API calls. With Browser-GPT you can get infinite amount of API calls without worrying about any credits. This works by automating the process of sending a prompt to ChatGPT and getting the response back using Selenium.
How to Install & run:
This project uses Rye Package manager
-
Clone the repository:
git clone https://github.com/vertexcover-io/browser-gpt-api.git cd src/browser_gpt_api
-
Install project dependencies using Rye:
rye sync
-
Create a copy of the environment variable template file and edit it according to your configuration:
cp .env.template .env
-
Download Chrome Driver based on your chrome version and OS.
-
Add the location of
chromedriver.exefile as aSystem variablein Environmental variables. -
In the main directory run
setup.py:python setup.py
-
To setup your local-server run
server.py:python server.py
-
Now you can access ChatGPT via the API endpoint :
http://127.0.0.1:8000/chat/completion
Stack
- Rye
- Selenium
- FastAPI
- uvicorn
Pre-Commit
Set up pre-commit hooks to automatically check your code for linting and formatting issues before the commit. Run following command to install pre-commit hooks:
rye run pre-commit install
Format and Lint
This project uses Ruff for code formatting and linting. Use following commands to format and lint your code:
- Check for issues:
ruff check
- Format your code:
ruff format
For more information refer to the Ruff Documentation.
Metadata
Release files for browser-gpt-api 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| browser_gpt_api-0.1.0.tar.gz | 9.0 kB | Without provenance | Details for browser_gpt_api-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| browser_gpt_api-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for browser_gpt_api-0.1.0-py3-none-any.whl |
Total release size: 18.4 kB
Release files / browser_gpt_api-0.1.0.tar.gz
| Download URL | browser_gpt_api-0.1.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
742250d8085ba1ba60ccbdefd494edab1c26ab64fb39ffe46c4dec1f3ce210ed
|
|
BLAKE2b-256 checksum How to use checksums |
ab362640b1db79e2395950d4e97d64d61b1850d7fb3e37f512eef74409e3b060
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.3
|
Release files / browser_gpt_api-0.1.0-py3-none-any.whl
| Download URL | browser_gpt_api-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96bcfe28a9e236d3e334b2530548cc0a05d516e8d89500dd78956ba71eb0fa26
|
|
BLAKE2b-256 checksum How to use checksums |
d30e8b4a8b5bce1f15d77778c4012503b8930b1c18814c13928eeedb16d97702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.3
|
Security for browser-gpt-api 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.