Skip to main content

A simple tool to make posts on Instagram programmatically

Project description

PostBot

A simple tool to make posts on Instagram programmatically


###Installation

pip install postbot or pip3 install postbot

###Description This tool provides capabilities to make posts on instagram according to content stored in a database and a defined time interval.

For example, let's suppose that you already have many images which you want to post and its corresponding caption text and tags. And you are planning to post them on Instagram one each day. So you can store this information in a database and PostBot automates this task in a few lines of code:


from postbot import PostBot


def quickstart():
# 1 - Create an instance of PostBot
post_bot = PostBot(
geckodriver_path=r'/home/you/drivers/geckodriver',
username='my_ig_account@mail.com',
password='my_password',
mysql_host='localhost',
mysql_database='posts_db',
mysql_username='postman',
mysql_password='post_db_pass',
mysql_posts_table='posts_table',
mysql_img_path_column='post_img_path',
mysql_caption_txt_column='post_txt'
)
# 2 - Login to Instagram
post_bot.login()
# 3 - Start posting
# This function makes a post every amount of minutes specified (1 day = 1440 minutes)
minutes_in_a_day = 1440
post_bot.start_posting(minutes_in_a_day)
post_bot.quit()

That's it! The bot will run till all posts have been posted.

Take into consideration that the database table that has the posts needs a 'posted' column of type boolean with default value of false. This is used by the PostBot to keep track of the posted posts and the pending ones.


Disclaimer: Please note that this is a research project. The owner and contributor/s of this project are by no means neither responsible for any usage of this tool nor responsible if your account gets banned due to the extensive use of this tool. Use it at your own risk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

postbot-0.1.3.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

postbot-0.1.3-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file postbot-0.1.3.tar.gz.

File metadata

  • Download URL: postbot-0.1.3.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for postbot-0.1.3.tar.gz
Algorithm Hash digest
SHA256 aeb75b27e9ffcefa8cce949e7b4c80405688d894202d7bcc935b85587d269a0d
MD5 3c83adcb5a626c46e66413ca3c3175ab
BLAKE2b-256 b9633d9b986d5242183fe67fa56b4f70b3aa5ed88e40ab9d6ad1ca6a7d0dce28

See more details on using hashes here.

File details

Details for the file postbot-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: postbot-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for postbot-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 748f3bdf2792eab86d6a2cba0688d7a1e73b8f0026f01ad25fc6f88870e72fdd
MD5 50e412850e5ca318a383e79e9fff09f2
BLAKE2b-256 982b66bbc31b65c0abd350af6cb0318b018a575adedebdffdb6c42c892dc64dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page