{ "info": { "author": "ExportComments", "author_email": "sales@exportcomments.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# ExportComments API for Python\n\nOfficial Python client for the [ExportComments API](https://exportcomments.com/api). Build and run machine learning models for language processing from your Python apps.\n\n## Installation\n\nYou can use pip to install the library:\n\n```bash\n$ pip install exportcomments\n```\n\nAlternatively, you can just clone the repository and run the setup.py script:\n\n```bash\n$ python setup.py install\n```\n\n## Usage\n\nBefore making requests to the API, you need to create an instance of the ExportComments client. You will have to use your [account API Key](https://exportcomments.com/pricing):\n\n```python\nfrom exportcomments import ExportComments\n\n# Instantiate the client Using your API key\nex = ExportComments('')\n```\n\n### Usage Examples\n\nFrom the ExportComments client instance, you can call any endpoint:\n\n## Check export\n\n```python\nresponse = ex.exports.check(\n guid='dfd6a2f2-5579-421f-96ac-98993d0edea1'\n)\n\n```\n\n### Responses\n\nThe response object returned by every endpoint call is a `ExportCommentsResponse` object. The `body` attribute has the parsed response from the API:\n\n```python\nprint(response.body)\n\n# => {\n# => \"code\": 200,\n# => \"success\": true,\n# => \"data\": {\n# => \"url\": \"https://www.instagram.com/p/1234567\",\n# => \"guid\": \"2cfb0b9d-7633-4341-a702-cb889fe549eb\",\n# => \"status\": \"queueing\",\n# => \"replies\": false,\n# => \"fileName\": \"comments5ea4b4d5a7602-1325511884314646.xlsx\",\n# => \"fileNameRAW\": \"08b735760a5a40eb1fd70ca16e97aed3-2e0916fe-de86-4422-8449-fb608cbe5221.json\",\n# => \"total\": 0,\n# => \"totalExported\": 0,\n# => \"retry\": 0,\n# => \"error\": null,\n# => \"repliesCount\": 0,\n# => \"twitterType\": null,\n# => \"timezone\": \"UTC\",\n# => \"createdAt\": \"2016-08-26T07:32:09+00:00\",\n# => \"updatedAt\": \"2016-08-26T07:32:09+00:00\",\n# => \"exportedAt\": \"\",\n# => \"downloadUrl\": \"/exports/comments5ea4b4d5a7602-1325511884314646.xlsx\",\n# => \"rawUrl\": \"/exports/08b735760a5a40eb1fd70ca16e97aed3-2e0916fe-de86-4422-8449-fb608cbe5221.json\"\n# => },\n# => \"message\": null\n# => }\n```\n\n## Create export\n\n```python\nresponse = ex.exports.create(\n url='https://www.instagram.com/p/1234567', replies='false', twitterType=None\n)\n\n```\n\n### Errors\n\nEndpoint calls may raise exceptions. Here is an example on how to handle them:\n\n```python\nfrom exportcomments.exceptions import PlanQueryLimitError, ExportCommentsException\n\ntry:\n response = ex.exports.create(url='https://www.instagram.com/p/1234567', replies='false', twitterType=None)\nexcept PlanQueryLimitError as e:\n # No monthly queries left\n # e.response contains the ExportCommentsResponse object\n print(e.error_code, e.detail)\nexcept ExportCommentsException:\n raise\n```\n\nAvailable exceptions:\n\n| class | Description |\n| --------------------------- | --------------------------------------------------------------------------------------------------- |\n| `ExportCommentsException` | Base class for every exception below. |\n| `RequestParamsError` | An invalid parameter was sent. Check the exception message or response object for more information. |\n| `AuthenticationError` | Authentication failed, usually because an invalid token was provided. Check the exception message. |\n| `ForbiddenError` | You don't have permissions to perform the action on the given resource. |\n| `PlanRateLimitError` | You have sent too many requests in the last minute. |\n| `ConcurrencyRateLimitError` | You have sent too many requests in the last second. |", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/exportcomments/exportcomments-python/tarball/v1.0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/exportcomments/exportcomments-python", "keywords": "exportcomments,export social media comments,python", "license": "", "maintainer": "", "maintainer_email": "", "name": "exportcomments", "package_url": "https://pypi.org/project/exportcomments/", "platform": "", "project_url": "https://pypi.org/project/exportcomments/", "project_urls": { "Download": "https://github.com/exportcomments/exportcomments-python/tarball/v1.0.1", "Homepage": "https://github.com/exportcomments/exportcomments-python" }, "release_url": "https://pypi.org/project/exportcomments/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Official Python client for the ExportComments API", "version": "1.0.1", "yanked": false, "yanked_reason": null }, "last_serial": 10452932, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "315d9ed6396d0e888bf4eb75775c29c9", "sha256": "88101bc0e1c42bd8c64a8e25c0b26d7dc860db0b9506b1bb4ccc0e2b54c637f6" }, "downloads": -1, "filename": "exportcomments-1.0.0-py2.7.egg", "has_sig": false, "md5_digest": "315d9ed6396d0e888bf4eb75775c29c9", "packagetype": "bdist_egg", "python_version": "1.0.0", "requires_python": null, "size": 15951, "upload_time": "2021-05-24T10:41:18", "upload_time_iso_8601": "2021-05-24T10:41:18.753710Z", "url": "https://files.pythonhosted.org/packages/c4/58/38b608a8501e6254c5df0df824a21bf400261c8244babef08f75ffea4e83/exportcomments-1.0.0-py2.7.egg", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "b9fb8eadaa60c21419dc494fba1f3b29", "sha256": "2aed02b03ac983c4083cad36eae6dbe1ec79a21e34ef9cbe778096c3b5a9d7b8" }, "downloads": -1, "filename": "exportcomments-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b9fb8eadaa60c21419dc494fba1f3b29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6014, "upload_time": "2019-10-29T13:08:03", "upload_time_iso_8601": "2019-10-29T13:08:03.640833Z", "url": "https://files.pythonhosted.org/packages/ec/2c/dc52976effe138adc6b8f5484c1802bb4664ca6b977e2ac1e3d414b8903e/exportcomments-1.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "c73b8bbbf17a0b4004535939c182884b", "sha256": "444d8b9645213bb6b0897bdb98b51acf481bc9fe865e7ac40b6e157ad6d841c9" }, "downloads": -1, "filename": "exportcomments-1.0.1.tar.gz", "has_sig": false, "md5_digest": "c73b8bbbf17a0b4004535939c182884b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6102, "upload_time": "2021-05-24T10:41:19", "upload_time_iso_8601": "2021-05-24T10:41:19.951830Z", "url": "https://files.pythonhosted.org/packages/bf/9d/bd01a080caa476fd74a0a017fbd51a3ca6f4a90f78a6881b6de92caf0a83/exportcomments-1.0.1.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c73b8bbbf17a0b4004535939c182884b", "sha256": "444d8b9645213bb6b0897bdb98b51acf481bc9fe865e7ac40b6e157ad6d841c9" }, "downloads": -1, "filename": "exportcomments-1.0.1.tar.gz", "has_sig": false, "md5_digest": "c73b8bbbf17a0b4004535939c182884b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6102, "upload_time": "2021-05-24T10:41:19", "upload_time_iso_8601": "2021-05-24T10:41:19.951830Z", "url": "https://files.pythonhosted.org/packages/bf/9d/bd01a080caa476fd74a0a017fbd51a3ca6f4a90f78a6881b6de92caf0a83/exportcomments-1.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }