{ "info": { "author": "Felix Breuer", "author_email": "hi@felixbreuer.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "

Instagram Private API

\n

\n \"Build\n \"Documentation\n \n \"PyPI\"\n \"Code\n

\n\nA Python wrapper for the Instagram private API with no 3rd party dependencies.\n\n## Overview\n\nI wrote this to access Instagram's API when they clamped down on developer access. Because this is meant to achieve [parity](COMPAT.md) with the [official public API](https://www.instagram.com/developer/endpoints/), methods not available in the public API will generally have lower priority.\n\nProblems? Please check the [docs](https://instapi.readthedocs.io/en/latest/) before submitting an issue.\n\n## Features\n\n- Supports many functions that are only available through the official app, such as:\n - Multiple feeds, such as [user feed](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.user_feed), [location feed](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.feed_location), [tag feed](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.feed_tag), [popular feed](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.feed_popular)\n - Post a [photo](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.post_photo) or [video](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.post_video) to your feed or stories\n - [Like](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.post_like)/[unlike](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.delete_like) posts\n - Get [post comments](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.media_comments)\n - [Post](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.post_comment)/[delete](https://instapi.readthedocs.io/en/latest/api.html#instagram_web_api.Client.delete_comment) comments\n https://instapi.readthedocs.io/en/latest/api/#instapi.Client.comment_unlike\n - [Like](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.comment_like)/[unlike](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.comment_unlike) comments\n - [Follow](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.friendships_create)/[unfollow](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.friendships_destroy) users\n - User [stories](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client.user_story_feed)\n - And [more](https://instapi.readthedocs.io/en/latest/api.html#instapi.Client)!\n- Compatible with functions available through the public API using the [ClientCompatPatch](https://instapi.readthedocs.io/en/latest/api.html#instapi.ClientCompatPatch) utility class\n\n## Documentation\n\nDocumentation is available at [instapi.rtfd.io](https://instapi.readthedocs.io/en/latest/).\n\n## Install\n\nInstall with pip:\n\n``pip install instapi``\n\nTo update:\n\n``pip install instapi --upgrade``\n\nTo update with latest repo code:\n\n``pip install instapi --upgrade --force-reinstall``\n\nTested on Python 3.\n\n## Usage\n\nThe [app API client](instapi/) emulates the official app and has a larger set of functions.\n\nThe [``examples/``](examples/) and [``tests/``](tests/) are a good source of detailed sample code on how to use the clients, including a simple way to save the auth cookie for reuse.\n\n### Use the [official app's API](instapi/)\n\n```python\n\nfrom instapi import Client, ClientCompatPatch\n\nuser_name = 'YOUR_LOGIN_USER_NAME'\npassword = 'YOUR_PASSWORD'\n\napi = Client(user_name, password)\nresults = api.feed_timeline()\nitems = [item for item in results.get('feed_items', [])\n if item.get('media_or_ad')]\nfor item in items:\n # Manually patch the entity to match the public api as closely as possible, optional\n # To automatically patch entities, initialise the Client with auto_patch=True\n ClientCompatPatch.media(item['media_or_ad'])\n print(item['media_or_ad']['code'])\n```\n\n### Avoiding Re-login\n\nYou are advised to persist/cache the auth cookie details to avoid logging in every time you make an api call. Excessive logins is a surefire way to get your account flagged for removal. It's also advisable to cache the client details such as user agent, etc together with the auth details.\n\nThe saved auth cookie can be reused for up to **90 days**.\n\n## Support\n\nMake sure to review the [contributing documentation](CONTRIBUTING.md) before submitting an issue report or pull request.\n\n## Legal\n\nDisclaimer: This is not affliated, endorsed or certified by Instagram. This is an independent and unofficial API. Strictly **not for spam**. Use at your own risk.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/breuerfelix/instapi", "keywords": "instagram private api", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "instapi", "package_url": "https://pypi.org/project/instapi/", "platform": "", "project_url": "https://pypi.org/project/instapi/", "project_urls": { "Homepage": "https://github.com/breuerfelix/instapi" }, "release_url": "https://pypi.org/project/instapi/0.1.4/", "requires_dist": null, "requires_python": ">=3", "summary": "A client interface for the private Instagram API.", "version": "0.1.4" }, "last_serial": 5600146, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "22da8fd2fec3616aec5a1440fea7de01", "sha256": "b785bfeb7322f296d64a0f6025d3b9008b75c86bca963b025aa0b5df94868ce3" }, "downloads": -1, "filename": "instapi-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "22da8fd2fec3616aec5a1440fea7de01", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 97372, "upload_time": "2019-07-29T13:28:51", "url": "https://files.pythonhosted.org/packages/e1/f5/d498b84f62fb90ab8528d21023190f68f649c28862ce5ca9ac2f97cf3a62/instapi-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "053476ae489412b8c5790546e3baaf9c", "sha256": "75d6a2b5ee230ad1dabd9cb9051ed477d1beaf07718cfb0dfd7469fda81363b4" }, "downloads": -1, "filename": "instapi-0.1.0.tar.gz", "has_sig": false, "md5_digest": "053476ae489412b8c5790546e3baaf9c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 79161, "upload_time": "2019-07-29T13:28:52", "url": "https://files.pythonhosted.org/packages/d8/eb/4733aa7056f3f4f95541081ffeeae4ca35214336444a1148135f692f0fb6/instapi-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c760437aa03518442ae343b49ab6776d", "sha256": "dc692b4eabad03f9233ae03e4803e246ac617aedfa48affdf44ce7b01d0e9f10" }, "downloads": -1, "filename": "instapi-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c760437aa03518442ae343b49ab6776d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 97363, "upload_time": "2019-07-29T13:37:14", "url": "https://files.pythonhosted.org/packages/2c/e7/b406a159a2eec162e93c43652a2ed59cddf56d8e8ca1fc334ba943ec74a1/instapi-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ffed7e868e8f76512eec47de8a4dc72a", "sha256": "bdc8e1328ceffab3d756e54c471ffde2f677fa0cb7944729e8ba05c77147f05b" }, "downloads": -1, "filename": "instapi-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ffed7e868e8f76512eec47de8a4dc72a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 79146, "upload_time": "2019-07-29T13:37:16", "url": "https://files.pythonhosted.org/packages/36/d9/b5308312400b6ce2b7af059cd1cbf531b389a6e67bfd4eff405b282efa95/instapi-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "cddbbe17fd931ae618c7d3ccc8204756", "sha256": "8eac977d5533dd8163bc940613167d9c6f1db7fb64b8c9bbd0ced52d4b4abec8" }, "downloads": -1, "filename": "instapi-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "cddbbe17fd931ae618c7d3ccc8204756", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 97372, "upload_time": "2019-07-29T13:50:16", "url": "https://files.pythonhosted.org/packages/7c/0d/dceadb119f7630d49785bdbb3b672d59b987fdfca6e146e29bd9ba8e4d91/instapi-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65f923ce8d7af8bea029120efaf3414a", "sha256": "244b70fa5d3678015b55ca7e4db1ab83be5d46f4ef63065a9870e0607ead74ac" }, "downloads": -1, "filename": "instapi-0.1.2.tar.gz", "has_sig": false, "md5_digest": "65f923ce8d7af8bea029120efaf3414a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 79164, "upload_time": "2019-07-29T13:50:18", "url": "https://files.pythonhosted.org/packages/7e/7c/9c2feeca854482c174d6eda9a35cec137d4f0e2dc3fd0f9faa06443523fc/instapi-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "89d2dabd8f55e31ca19c66bc7c5b5497", "sha256": "83dadc1a3f14e40f951d33813a03674ffa69a132cec6d1cc5aa6d3fe8eacc10c" }, "downloads": -1, "filename": "instapi-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "89d2dabd8f55e31ca19c66bc7c5b5497", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 97284, "upload_time": "2019-07-29T14:35:48", "url": "https://files.pythonhosted.org/packages/20/2b/51b928301e6524f688ec72d4dbf676e6c26e8eb5f0965a70159c0f5ab95b/instapi-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d9f2c138a9bda9d2c3bd3a1399f5e37c", "sha256": "73b377a7445b8e34f8db8f3fa1121a83b2a506a519d42ef3ed8ee44699ada4d4" }, "downloads": -1, "filename": "instapi-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d9f2c138a9bda9d2c3bd3a1399f5e37c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 78987, "upload_time": "2019-07-29T14:35:49", "url": "https://files.pythonhosted.org/packages/87/56/e21c760a2885e08198bacafa0e5d17f0eedb61a79dc4bcd8b14fc78fce8c/instapi-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "e8d7bb6ec10dff920c20c6129e87e55b", "sha256": "189ce69c6bcfb927b903dcdaf8762f28b991ce027648c15dcd5a2f92b42b7c36" }, "downloads": -1, "filename": "instapi-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "e8d7bb6ec10dff920c20c6129e87e55b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 99028, "upload_time": "2019-07-29T15:29:22", "url": "https://files.pythonhosted.org/packages/0a/a7/d76079a66ee59b6c06a3a3eb36ea1d7236ba77ddb6aeff5092ed21027533/instapi-0.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a27db77b00e2b5ea06a52c18bb5443bb", "sha256": "f17a8dc62667f47fcf54f73a4313cc450f075b2e1bbd47e909e358a4fa9edc87" }, "downloads": -1, "filename": "instapi-0.1.4.tar.gz", "has_sig": false, "md5_digest": "a27db77b00e2b5ea06a52c18bb5443bb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 80745, "upload_time": "2019-07-29T15:29:24", "url": "https://files.pythonhosted.org/packages/55/10/df6b819c40c0e09ae69ad6e329ae622e2576d57df2475680eab176cc2730/instapi-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8d7bb6ec10dff920c20c6129e87e55b", "sha256": "189ce69c6bcfb927b903dcdaf8762f28b991ce027648c15dcd5a2f92b42b7c36" }, "downloads": -1, "filename": "instapi-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "e8d7bb6ec10dff920c20c6129e87e55b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3", "size": 99028, "upload_time": "2019-07-29T15:29:22", "url": "https://files.pythonhosted.org/packages/0a/a7/d76079a66ee59b6c06a3a3eb36ea1d7236ba77ddb6aeff5092ed21027533/instapi-0.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a27db77b00e2b5ea06a52c18bb5443bb", "sha256": "f17a8dc62667f47fcf54f73a4313cc450f075b2e1bbd47e909e358a4fa9edc87" }, "downloads": -1, "filename": "instapi-0.1.4.tar.gz", "has_sig": false, "md5_digest": "a27db77b00e2b5ea06a52c18bb5443bb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 80745, "upload_time": "2019-07-29T15:29:24", "url": "https://files.pythonhosted.org/packages/55/10/df6b819c40c0e09ae69ad6e329ae622e2576d57df2475680eab176cc2730/instapi-0.1.4.tar.gz" } ] }