Skip to main content

A simple-to-use Instagram Python interface using Selenium.

Project description


PyGramCore

📷 pygramcore


An easy-to-use Instagram SDK using Selenium.

🔑 Key Features

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

    • Users: Follow, download posts, direct message, and more.

    • Stories: Like, download, reply and more.

    • Posts: Like, comment, save, download, and more.

    • Comments: Like, reply, and engage.

❓ 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.

🙋‍♂️ 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!

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

pygramcore-1.0.2.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

pygramcore-1.0.2-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

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