pygramcore 1.1.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

pygramcore 1.1.0

πŸ“· pygramcore


An easy-to-use Instagram SDK using Selenium.


<img src="https://img.shields.io/pypi/v/pygramcore?style=for-the-badge">



<img src="https://img.shields.io/github/license/jtayped/pygramcore?style=for-the-badge" alt="License">



<img src="https://img.shields.io/github/issues/jtayped/pygramcore?style=for-the-badge" alt="License">



<img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn">




Key Features β€’
How To Use β€’
Related


πŸ”‘ Key Features


Modular Elements: Easily use and customize modular elements such as Posts, Comments, and Users.


Users: Follow, direct message, get posts, and more.


Posts: Like, comment, download, and more.


Stories (Coming soon...)


Comments (Coming soon...)





πŸ”§ How To Use
First of all, install the package using:
pip install pygramcore

To take authenticated actions, initialize your Instagram account with your email/password and login:
from pygramcore import Account



Account.login("youremail@email.com", "yourpassword123")

Account.save_cookies("path/to/file.pkl")

To initialize an account from cookies:
Account.load_cookies("path/to/file.pkl")

This will allow you to post images, comment on other peoples posts, send DMs, etc...
Account.post("path/to/image.png", "Your very interesting caption")

To search for a user simply:
from pygramcore import User



user = User("username123_")

Here is an example of the usage of a user:
# Get a list of Post() objects

posts = user.get_posts(limit=50)



# Like the first 10 posts in the user's feed

for post in posts[:10]:

# Get URLs of the images in the post

urls = post.get_images()



# Like & comment the post

post.comment("Nice post!")

post.like()

Please refer to the docs for more.

❓ About the Project
This Python package was created as a fun project to enhance my proficiency in writing "professional" Python code, building packages, implementing semantic versioning, and ensuring code maintainability.
I am still a relatively new developer, and I welcome any contributions and feedback to help me improve.
It is important to note that this project is not intended to replace essential packages such as InstaPy, nor do I anticipate that it will.
πŸ™‹β€β™‚οΈ You may also like...


βœ‚οΈπŸ“±TikTok Manager - A script that manages MULTIPLE TikTok accounts by schedueling automatically generated videos from pre-selected YouTube channels to TikTok in advance.


πŸ§‘β€πŸ’ΌMy Portfolio - Check out my front-end and SEO skills on my Portfolio!

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.