From 94389be39e35cb290da84231026db7623d56a753 Mon Sep 17 00:00:00 2001 From: Avikalp Kumar Gupta Date: Tue, 20 Aug 2024 19:55:42 +0530 Subject: [PATCH 1/3] Create requirements.txt and update README with more detailed steps to setup --- README.md | 28 +++++++++++++++++++++++++--- requirements.txt | 5 +++++ 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index d08bda0..cf2141e 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,36 @@ checkout this [loom video](https://www.loom.com/share/2037ee751b4f491c8d2ffd472d #### setup -1. install poetry if not already installed +1. Create a fork of this repository on GitHub and clone your fork 2. use python >=3.8 in venv -3. do poetry install +```bash +python3 --version # output: Python 3.8.xx +python3 -m venv .venv +source .venv/bin/activate +``` +1. Copy the example env file +```bash +cp .env.example .env +``` +1. Create service account API key for jobber on OpenAI (and Langsmith) and paste them in the `.env` file. +3. Install dependencies +```bash +pip3 install -r requirements.txt +``` +1. Setup playwright's browser binaries: +```bash +playwright install +``` #### running the agent 1. Start a chrome instance with this command and do necessary logins `sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222` -2. use the command `python -u -m jobber.main` +OR using this command for Ubuntu: +```bash +google-chrome --remote-debugging-port=9222 +``` +1. Update your preferences in the `./jobber/user_preferences/user_preferences.txt` file. +2. use the command `python -u -m jobber` 3. example task - `apply for a backend engineer role based in helsinki on linkedin` # sentient diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3b91f14 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +python-dotenv +poetry +litellm +playwright +pdfplumber From 93e5b3ddbe61acd525a7d8985c9f6d2d9c2db3ac Mon Sep 17 00:00:00 2001 From: Avikalp Kumar Gupta Date: Tue, 20 Aug 2024 19:56:03 +0530 Subject: [PATCH 2/3] fix: Add __main__.py that is a copy of main.py --- jobber/__main__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 jobber/__main__.py diff --git a/jobber/__main__.py b/jobber/__main__.py new file mode 100644 index 0000000..680d7f7 --- /dev/null +++ b/jobber/__main__.py @@ -0,0 +1,12 @@ +import asyncio + +from jobber.core.system_orchestrator import SystemOrchestrator + + +async def main(): + orchestrator = SystemOrchestrator() + await orchestrator.start() + + +if __name__ == "__main__": + asyncio.run(main()) From f122b2f64c58f6858bd4cefab4faa08c4527fc1e Mon Sep 17 00:00:00 2001 From: Avikalp Kumar Gupta Date: Tue, 20 Aug 2024 20:00:48 +0530 Subject: [PATCH 3/3] minor: fixed the numerical bullet numbers --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cf2141e..2bc911c 100644 --- a/README.md +++ b/README.md @@ -15,16 +15,16 @@ python3 --version # output: Python 3.8.xx python3 -m venv .venv source .venv/bin/activate ``` -1. Copy the example env file +3. Copy the example env file ```bash cp .env.example .env ``` -1. Create service account API key for jobber on OpenAI (and Langsmith) and paste them in the `.env` file. -3. Install dependencies +4. Create service account API key for jobber on OpenAI (and Langsmith) and paste them in the `.env` file. +5. Install dependencies ```bash pip3 install -r requirements.txt ``` -1. Setup playwright's browser binaries: +6. Setup playwright's browser binaries: ```bash playwright install ``` @@ -36,9 +36,9 @@ OR using this command for Ubuntu: ```bash google-chrome --remote-debugging-port=9222 ``` -1. Update your preferences in the `./jobber/user_preferences/user_preferences.txt` file. -2. use the command `python -u -m jobber` -3. example task - `apply for a backend engineer role based in helsinki on linkedin` +2. Update your preferences in the `./jobber/user_preferences/user_preferences.txt` file. +3. use the command `python -u -m jobber` +4. example task - `apply for a backend engineer role based in helsinki on linkedin` # sentient