Skip to content

A bot telegram for the management of a totally autonomous Instagram pages via Deep Learning

Notifications You must be signed in to change notification settings

RiccardoDominici/InstaPageHandlerBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InstaPageHandlerBot

A bot telegram for the totally autonomous management of Instagram pages via Deep Learning.

Commands

  • Start: Start the bot and instagram login.
  • Post_now: Based on a topic, it generates an image with Dall-e, a caption and hashtags with gpt-3, then it posts all immediately on Instagram.
  • Logout: Delete config files.
  • Help: View list of comands.
  • Post (coming soon): Start the recurrent publication of generated posts as written before.
  • Stop_post (coming soon): Stop recurrent pubblication.
  • View_error (coming soon): View error files.
  • Watch_stories_from_user (coming soon): Watch all the stories of all the followers of a user you specify

Getting Started

How to set up your personal bot.

Install dependencies

pip3 install -r requirements.txt

Installation and configuration

  1. Get your OPENAI API Key at openai.com
  2. Get your Telegram token by following the official guide
  3. Clone the repo
    git clone https://github.com/RiccardoDominici/InstaPageHandlerBot
  4. Simply create a secrets.env file and insert all your credentials:
    TELEGRAM_TOKEN=YOUR_TELEGRAM_TOKEN
    OPENAI_API_KEY=YOUR_OPENAI_KEY
    BOT_USERNAME=@yourTelegramBotUsername
    USERNAME_INSTA=your.instagram.page.nick
    PASSWORD_INSTA=Y0ur1nstagramPag3Psw
    
  5. Write your personal prompt in data.json file:
    {
    "image_prompt": "description of the image background",
    "text_prompt": "explanation of the text you want above the image",
    "caption_prompt": "explanation of the caption and the type of hashtags you want"
    }
    

Example

prompt:

{
"image_prompt": "mountains in sunrise with rice field, ultrawide, trees, river, and a road, oil painting style",
"text_prompt": "write a mock motivational sentence where instead of motivating you jokingly insult your readers. do not use punctuation",
"caption_prompt": "create a short description of an instagram post for a motivational page, add hashtags"
}

Watch page:

About

A bot telegram for the management of a totally autonomous Instagram pages via Deep Learning

Topics

Resources

Stars

Watchers

Forks

Languages