HI-Bot is an automation tool designed for Holberton School students. It retrieves the required repository, directory, and file names for your current project from the Holberton School Intranet and automatically creates the necessary directory structure in your local environment.
Clone HI-Bot
git clone https://github.com/KamoheloKoali/HI-Bot.git
Go to the project directory
cd HI-Bot
Create a virtual environment (optional but recommended)
python3 -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
Install dependencies
pip install -r requirements.txt
HI-Bot only works using Google Chrome, so please install it if you do not already have it installed.
In order for HI-Bot to create the directory and files in the repository defined on the Holberton School intranet correctly, the repository must be cloned locally and must be relative to the HI-Bot repository.
Example:
Create a .env.local file inside HI-Bot's repository to store your student email and password, which are required for logging into the Holberton School Intranet.
STUDENT_EMAIL="[email protected]"
STUDENT_PASSWORD="your_password"
You can run HI-Bot with the following command. The Chrome installation path is optional unless Chrome is installed in a non-default location.
python3 main.py <curriculum part> [path to Chrome installation (optional)]
Example:
python3 main.py part 3
python3 main.py part 3 "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
Once you run it, it should open up a Google Chrome window. For HI-Bot to get past the Cloudflare CAPTCHA, it needs your help. All you need to do is take the Cloudflare CAPTCHA test.
Note: For Windows and MacOs users, this may not be necessary.
After that, you can leave everything to HI-Bot! Don't forget to leave a star 🙂For support, feel free to reach out via email at [email protected] or through any of the social media platforms listed on my GitHub profile.
Happy coding! 🚀