PyGramCore


NamePyGramCore JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryA simple-to-use Instagram Python interface using Selenium.
upload_time2024-05-09 15:23:28
maintainerNone
docs_urlNone
authorJoel Taylor
requires_pythonNone
licenseMIT
keywords instagram instagram bot selenium automation bot
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
  <br>
  <img src="/images/icon.png" alt="PyGramCore" width="200">
  <br>
  πŸ“· pygramcore
  <br>
</h1>

<h4 align="center">An easy-to-use Instagram SDK using <a href="https://www.selenium.dev/" target="_blank">Selenium</a>.</h4>

<p align="center">
  <a href="https://pypi.org/project/PyGramCore/">
    <img src="https://img.shields.io/pypi/v/pygramcore?style=for-the-badge">
  </a>
  <a href="/LICENSE">
      <img src="https://img.shields.io/github/license/jtayped/pygramcore?style=for-the-badge" alt="License">
  </a>
    <a href="/issues">
      <img src="https://img.shields.io/github/issues/jtayped/pygramcore?style=for-the-badge" alt="License">
  </a>
  <a href="https://www.linkedin.com/in/jtayped/">
      <img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="LinkedIn">
  </a>
</p>

<p align="center">
  <a href="#key-features">Key Features</a> β€’
  <a href="#how-to-use">How To Use</a> β€’
  <a href="#related">Related</a>
</p>

<div id="key-features"></div>

## πŸ”‘ 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.

<div id="how-to-use"></div>

## ❓ How To Use

First of all, install the package using:

```bash
pip install pygramcore
```

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

```python
from pygramcore import Account

Account.login("youremail@email.com", "yourpassword123")
Account.save_cookies("path/to/file.pkl")
```

To initialize an account from cookies:

```python
Account.load_cookies("path/to/file.pkl")
```

This will allow you to post images, comment on other peoples posts, send DMs, etc...

```python
Account.post("path/to/image.png", "Your very interesting caption")
```

To search for a user simply:

```python
from pygramcore import User

user = User("username123_")
```

Here is an example of the usage of a user:

```python
# 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.

<div id="related"></div>

## πŸ™‹β€β™‚οΈ You may also like...

- [βœ‚οΈπŸ“±TikTok Manager](https://github.com/jtayped/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](https://joeltaylor.business) - Check out my front-end and SEO skills on my Portfolio!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "PyGramCore",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "instagram, instagram bot, selenium, automation, bot",
    "author": "Joel Taylor",
    "author_email": "contact@joeltaylor.business",
    "download_url": "https://files.pythonhosted.org/packages/e5/a8/3ea8056a09bf57237008a31bf15db0851277e5bbd2f28a941b44a9803a51/pygramcore-0.1.1.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n  <br>\n  <img src=\"/images/icon.png\" alt=\"PyGramCore\" width=\"200\">\n  <br>\n  \ud83d\udcf7 pygramcore\n  <br>\n</h1>\n\n<h4 align=\"center\">An easy-to-use Instagram SDK using <a href=\"https://www.selenium.dev/\" target=\"_blank\">Selenium</a>.</h4>\n\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/PyGramCore/\">\n    <img src=\"https://img.shields.io/pypi/v/pygramcore?style=for-the-badge\">\n  </a>\n  <a href=\"/LICENSE\">\n      <img src=\"https://img.shields.io/github/license/jtayped/pygramcore?style=for-the-badge\" alt=\"License\">\n  </a>\n    <a href=\"/issues\">\n      <img src=\"https://img.shields.io/github/issues/jtayped/pygramcore?style=for-the-badge\" alt=\"License\">\n  </a>\n  <a href=\"https://www.linkedin.com/in/jtayped/\">\n      <img src=\"https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white\" alt=\"LinkedIn\">\n  </a>\n</p>\n\n<p align=\"center\">\n  <a href=\"#key-features\">Key Features</a> \u2022\n  <a href=\"#how-to-use\">How To Use</a> \u2022\n  <a href=\"#related\">Related</a>\n</p>\n\n<div id=\"key-features\"></div>\n\n## \ud83d\udd11 Key Features\n\n- **Modular Elements**: Easily use and customize modular elements such as Posts, Comments, and Users.\n\n  - **Users**: Follow, download posts, direct message, and more.\n\n  - **Stories**: Like, download, reply and more.\n\n  - **Posts**: Like, comment, save, download, and more.\n\n  - **Comments**: Like, reply, and engage.\n\n<div id=\"how-to-use\"></div>\n\n## \u2753 How To Use\n\nFirst of all, install the package using:\n\n```bash\npip install pygramcore\n```\n\nTo take authenticated actions, initialize your Instagram account with your email/password and login:\n\n```python\nfrom pygramcore import Account\n\nAccount.login(\"youremail@email.com\", \"yourpassword123\")\nAccount.save_cookies(\"path/to/file.pkl\")\n```\n\nTo initialize an account from cookies:\n\n```python\nAccount.load_cookies(\"path/to/file.pkl\")\n```\n\nThis will allow you to post images, comment on other peoples posts, send DMs, etc...\n\n```python\nAccount.post(\"path/to/image.png\", \"Your very interesting caption\")\n```\n\nTo search for a user simply:\n\n```python\nfrom pygramcore import User\n\nuser = User(\"username123_\")\n```\n\nHere is an example of the usage of a user:\n\n```python\n# Get a list of Post() objects\nposts = user.get_posts(limit=50)\n\n# Like the first 10 posts in the user's feed\nfor post in posts[:10]:\n  # Get URLs of the images in the post\n  urls = post.get_images()\n\n  # Like & comment the post\n  post.comment(\"Nice post!\")\n  post.like()\n```\n\nPlease refer to the docs for more.\n\n<div id=\"related\"></div>\n\n## \ud83d\ude4b\u200d\u2642\ufe0f You may also like...\n\n- [\u2702\ufe0f\ud83d\udcf1TikTok Manager](https://github.com/jtayped/tiktok-manager) - A script that manages MULTIPLE TikTok accounts by schedueling automatically generated videos from pre-selected YouTube channels to TikTok in advance.\n- [\ud83e\uddd1\u200d\ud83d\udcbcMy Portfolio](https://joeltaylor.business) - Check out my front-end and SEO skills on my Portfolio!\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple-to-use Instagram Python interface using Selenium.",
    "version": "0.1.1",
    "project_urls": null,
    "split_keywords": [
        "instagram",
        " instagram bot",
        " selenium",
        " automation",
        " bot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d486056553585c12d2a2ed6a3899c1d53294fda15d4e62796a46794017db8816",
                "md5": "3c1deb1a35e64dcdd064f9cac2db525c",
                "sha256": "e873b36834789693cb66c2a63b5dd2d3155ee6e5492d73652f985b8c84ad842a"
            },
            "downloads": -1,
            "filename": "PyGramCore-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3c1deb1a35e64dcdd064f9cac2db525c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 15703,
            "upload_time": "2024-05-09T15:23:26",
            "upload_time_iso_8601": "2024-05-09T15:23:26.836864Z",
            "url": "https://files.pythonhosted.org/packages/d4/86/056553585c12d2a2ed6a3899c1d53294fda15d4e62796a46794017db8816/PyGramCore-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e5a83ea8056a09bf57237008a31bf15db0851277e5bbd2f28a941b44a9803a51",
                "md5": "87ccc42831243d88e1d708966a5ff277",
                "sha256": "f4ffbf151aaa0e327e804a633976eed2489211ffdac8983df2864190ff91aad4"
            },
            "downloads": -1,
            "filename": "pygramcore-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "87ccc42831243d88e1d708966a5ff277",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12274,
            "upload_time": "2024-05-09T15:23:28",
            "upload_time_iso_8601": "2024-05-09T15:23:28.416183Z",
            "url": "https://files.pythonhosted.org/packages/e5/a8/3ea8056a09bf57237008a31bf15db0851277e5bbd2f28a941b44a9803a51/pygramcore-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-09 15:23:28",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pygramcore"
}
        
Elapsed time: 2.01517s