{"id":22970789,"url":"https://github.com/labteral/pygram","last_synced_at":"2025-08-13T11:33:47.936Z","repository":{"id":62580744,"uuid":"250816979","full_name":"labteral/pygram","owner":"labteral","description":"Unofficial Python client for Instagram","archived":false,"fork":false,"pushed_at":"2020-11-05T07:56:38.000Z","size":56,"stargazers_count":42,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-05T16:07:25.717Z","etag":null,"topics":["bot","instagram","instagram-api","instagram-bot","instagram-client","instagram-crawler","instagram-download","instagram-downloader","instagram-feed","instagram-photos","instagram-scraper","instagram-sdk","sdk"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labteral.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-28T14:35:09.000Z","updated_at":"2024-08-04T11:29:46.000Z","dependencies_parsed_at":"2022-11-03T21:54:16.767Z","dependency_job_id":null,"html_url":"https://github.com/labteral/pygram","commit_stats":null,"previous_names":["brunneis/pygram"],"tags_count":0,"template":false,"template_full_name":"labteral/python-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labteral%2Fpygram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labteral%2Fpygram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labteral%2Fpygram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labteral%2Fpygram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labteral","download_url":"https://codeload.github.com/labteral/pygram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229759832,"owners_count":18119874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","instagram","instagram-api","instagram-bot","instagram-client","instagram-crawler","instagram-download","instagram-downloader","instagram-feed","instagram-photos","instagram-scraper","instagram-sdk","sdk"],"created_at":"2024-12-14T22:14:36.230Z","updated_at":"2024-12-14T22:14:36.831Z","avatar_url":"https://github.com/labteral.png","language":"Python","funding_links":["https://www.buymeacoffee.com/labteral"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"misc/pygram.svg\" alt=\"Pygram Logo\" width=\"150\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pepy.tech/project/pygram/\"\u003e\u003cimg alt=\"Downloads\" src=\"https://img.shields.io/badge/dynamic/json?style=flat-square\u0026maxAge=3600\u0026label=downloads\u0026query=$.total_downloads\u0026url=https://api.pepy.tech/api/projects/pygram\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pypi.python.org/pypi/pygram/\"\u003e\u003cimg alt=\"PyPi\" src=\"https://img.shields.io/pypi/v/pygram.svg?style=flat-square\"\u003e\u003c/a\u003e\n    \u003c!--\u003ca href=\"https://github.com/labteral/pygram/releases\"\u003e\u003cimg alt=\"GitHub releases\" src=\"https://img.shields.io/github/release/labteral/pygram.svg?style=flat-square\"\u003e\u003c/a\u003e--\u003e\n    \u003ca href=\"https://github.com/labteral/pygram/blob/master/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/labteral/pygram.svg?style=flat-square\u0026color=green\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003e\n\u003cb\u003eUnofficial Python client for Instagram\u003c/b\u003e\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.buymeacoffee.com/labteral\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"35px\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n## Installation\n```bash\npip install pygram\n```\n\n## Methods without mandatory login\n### Get user's profile\n```python\nfrom pygram import PyGram\npygram = PyGram()\n\nprofile = pygram.get_profile('eminem')\n```\n\n### Get user's ID\n```python\nfrom pygram import PyGram\npygram = PyGram()\n\nuser_id = pygram.get_user_id('eminem')\n```\n\n### Get user's posts\n```python\nfrom pygram import PyGram\npygram = PyGram()\n\nposts = pygram.get_posts('eminem', limit=10)\nfor post in posts:\n    print(post)\n```\n\n### Get post's comments\n```python\nfrom pygram import PyGram\npygram = PyGram()\n\ncomments = pygram.get_comments(post, limit=10)\nfor comment in comments:\n    print(comment)\n```\n\n## Methods with mandatory login\n### Login\n```python\nfrom pygram import PyGram\n\npygram = PyGram('user', 'password')\n```\n\u003e After the first login, a file with the name `pygram-cache.json` will be created in the current directory to avoid logging in again with every instantiation.\n\n### Get user's followers\n```python\nfrom pygram import PyGram\npygram = PyGram('user', 'password')\n\nusers = pygram.get_followers('eminem', limit=10)\nfor user in users:\n    print(user)\n```\n\n### Get users followed by a user\n```python\nfrom pygram import PyGram\npygram = PyGram('user', 'password')\n\nusers = pygram.get_followed('drdre', limit=10)\nfor user in users:\n    print(user)\n```\n\n### Like a post / comment\n```python\nfrom pygram import PyGram\npygram = PyGram('user', 'password')\n\nlast_post = next(pygram.get_posts('eminem', limit=1))\npygram.like(last_post)\n```\n\n### Unlike a post / comment\n```python\nfrom pygram import PyGram\npygram = PyGram('user', 'password')\n\nlast_post = next(pygram.get_posts('eminem', limit=1))\npygram.unlike(last_post)\n```\n\n### Comment a post / comment\n```python\nfrom pygram import PyGram\npygram = PyGram('user', 'password')\n\npygram.comment(post, 'this is the comment')\n```\n\n### Delete a comment\n```python\nfrom pygram import PyGram\npygram = PyGram('user', 'password')\n\npygram.delete(comment)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabteral%2Fpygram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabteral%2Fpygram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabteral%2Fpygram/lists"}