Instagram: https://www.instagram.com/algorithm.arena/
# Instagram Coding Question Bot
This Python script generates coding questions and posts them on Instagram every 24 hours. It uses the OpenAI API to generate questions and the Instabot library to post them on an Instagram account.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/mayank-bharwal/AlgorithmArena.git
-
Change into the project directory:
cd AlgorithmArena
-
Install the required dependencies:
pip install openai instabot pillow
-
Set up your OpenAI API key:
- Open the script (
instagram_coding_bot.py
) and replace'your_openai_api_key_here'
with your actual OpenAI API key.
- Open the script (
-
Create a custom font file:
- If you have a custom font for the text in the image, save it as
Lemon-Regular.ttf
in the project directory. If not, the script will use the default font.
- If you have a custom font for the text in the image, save it as
-
Create a logo file (optional):
- If you want to add a logo to the images, save the logo image as
logo.png
in the project directory.
- If you want to add a logo to the images, save the logo image as
-
Run the script:
python instagram_coding_bot.py
This will start the bot, which will generate coding questions and post them on Instagram at regular intervals.
-
To customize the bot's behavior, you can edit the script and modify parameters such as the Instagram account credentials, posting frequency, and more.
If you would like to contribute to this project, feel free to submit pull requests or open issues.
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.
- OpenAI for their powerful language model.
- Instabot for the Instagram automation library.
- Pillow for the Python Imaging Library used for image manipulation.