This Python script serves as an Instagram Uploading Bot that takes YouTube short links and uploads them to an Instagram account with media.
- Automatically fetches YouTube short links.
- Downloads the corresponding media.
- Uploads the media to the specified Instagram account.
- Python 3.6 or later
- Required Python packages (listed in
requirements.txt
)
-
Clone the repository:
git clone https://github.com/milliyin/insta-bot.git cd insta-bot
-
Install the required packages:
pip install -r requirements.txt
-
Configure the bot:
- Update the
config.py
file with your Instagram credentials and any other necessary settings.
- Update the
Open config.py
and set the following parameters:
username
: Your Instagram username.password
: Your Instagram password.upload_text
: Your Post Caption
Example config.py
:
username = 'your_username'
password = 'your_password'
upload_text = "Caption Text"
Run the bot by executing main.py
:
python main.py
The script will:
- Fetch the YouTube short links specified in
config.py
. - Download the corresponding media.
- Upload the media to your Instagram account.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/fooBar
). - Commit your changes (
git commit -am 'Add some fooBar'
). - Push to the branch (
git push origin feature/fooBar
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries or support, please open an issue in the GitHub repository.