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, 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!

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.1.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

pygramcore-1.1.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file pygramcore-1.1.0.tar.gz.

File metadata

  • Download URL: pygramcore-1.1.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for pygramcore-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9683d78019d5fcb176dade2a212d1a700a10b1756c3c0f61c334bb05a989fc10
MD5 02f1c88399abffc4b1254caecaa9e416
BLAKE2b-256 3ab9d6640d07f35d68018c72989044c8835f0d241e2fe16d63bd4a86a4b8c1c9

See more details on using hashes here.

File details

Details for the file pygramcore-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pygramcore-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for pygramcore-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e5bc4576a1f0edeb16a64a1e08187b9458c3813ec2b7315b613d94042d881ac
MD5 d25d081fd2faa9718eb2442e7cb87650
BLAKE2b-256 3d2f223d9912c7a0072903ce0ba905d89c0a8a5675ee560862179bc281ecb460

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