PostBot
A simple tool to make posts on Instagram programmatically
Installation
pip install postbotorpip3 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.
Metadata
Release files for postbot 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| postbot-0.1.4.tar.gz | 17.6 kB | Without provenance | Details for postbot-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| postbot-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for postbot-0.1.4-py3-none-any.whl |
Total release size: 35.9 kB
Release files / postbot-0.1.4.tar.gz
| Download URL | postbot-0.1.4.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78bd0a089cbf68400f1c955c1604e8f1825ad945681cceafc671c08d58cadf3a
|
|
BLAKE2b-256 checksum How to use checksums |
cea31fbffd7fff1a4e5cd70691349b4420c50926549466362c4356ba5680b7d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / postbot-0.1.4-py3-none-any.whl
| Download URL | postbot-0.1.4-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b594be4e462b982175e0715fb1dbb317e6c4c3782c506feedc841b2112ea590
|
|
BLAKE2b-256 checksum How to use checksums |
2483ca712c156da75a925afa507b0294ecf77224612d3c5c2002fa36279a0c9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for postbot 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.