{ "info": { "author": "Bharat Gulati", "author_email": "bharat.gulati.certi@gmail.com", "bugtrack_url": null, "classifiers": [], "description": " \r\r\n Asynchronously scrapes and parses application data from the Google Play Store.\r\r\n (Fork of play-scraper, a synchronous Google Play Store scraper, https://github.com/danieliu/play-scraper)\r\r\n \r\r\n ### Installation\r\r\n \r\r\n Install with pip.\r\r\n \r\r\n ```\r\r\n pip install playmate\r\r\n ```\r\r\n \r\r\n #### details\r\r\n \r\r\n Fetch an application's details.\r\r\n \r\r\n ```python\r\r\n async with PlayMate() as mate:\r\r\n app_info = await mate.get_app_details(app_id)\r\r\n ```\r\r\n * `app_id` the app id to get, e.g. `com.android.chrome` for Google Chrome.\r\r\n \r\r\n \r\r\n #### collection\r\r\n \r\r\n Fetch a list of applications from a collection, optionally filtered by category.\r\r\n \r\r\n ```python\r\r\n async with PlayMate() as mate:\r\r\n collection = await mate.get_apps(\r\r\n coln_id, catg_id, max_page=max_page\r\r\n )\r\r\n ```\r\r\n * `coln_id` a [collection](https://github.com/Gulats/playmate/blob/master/playmate/lists.py#L3) to fetch.\r\r\n * `catg_id` a [category](https://github.com/Gulats/playmate/blob/master/playmate/lists.py#L12) to filter by.\r\r\n * `max_page` (default 1, max 5) the number of pages to fetch with each page containing 120 records.\r\r\n \r\r\n \r\r\n #### search\r\r\n \r\r\n Fetch a list of applications matching a search query. Retrieves `20` apps at a time.\r\r\n \r\r\n ```python\r\r\n async with PlayMate() as mate:\r\r\n search_results = await mate.search_apps(\r\r\n term, max_page=max_page\r\r\n )\r\r\n ```\r\r\n * `term` query term(s) to search for.\r\r\n * `max_page` (default 1, max 5) the number of pages to fetch with each page containing 48 records.\r\r\n \r\r\n \r\r\n #### similar\r\r\n \r\r\n Fetch a list of similar applications.\r\r\n \r\r\n ```python\r\r\n async with PlayMate() as mate:\r\r\n similar_apps = await mate.get_similar_apps(app_id)\r\r\n ```\r\r\n * `app_id` the app id to get, e.g. `com.supercell.clashofclans` for Clash of Clans.\r\r\n \r\r\n \r\r\n #### custom settings\r\r\n \r\r\n Add customisation to the request\r\r\n \r\r\n ```python\r\r\n async with PlayMate(\r\r\n headers=dict(Origin='https://play.google.com'), \r\r\n timeout=180, \r\r\n hl='en', gl='us') as mate:\r\r\n app_info = await mate.get_app_details(app_id)\r\r\n ```\r\r\n * `headers` the headers to be sent for each request\r\r\n * `timeout` the total timeout for each request in seconds\r\r\n * `hl` (default `en` for English) the language code to receive results in a specific language\r\r\n * `gl` (default `us` for United States) the country code to receive results based from a specific country\r\r\n \r\r\n \r\r\n #### manually close session\r\r\n \r\r\n Manually close a persisted session\r\r\n \r\r\n ```python\r\r\n mate = PlayMate()\r\r\n app_info = await mate.get_app_details(app_id)\r\r\n await mate.close()\r\r\n ```\r\r\n \r\r\n \r\r\n ### Tests\r\r\n \r\r\n Run test:\r\r\n ```\r\r\n make test\r\r\n ```\r\nPlatform: UNKNOWN\r\nClassifier: Development Status :: 3 - Alpha\r\nClassifier: Intended Audience :: Developers\r\nClassifier: License :: OSI Approved :: MIT License\r\nClassifier: Natural Language :: English\r\nClassifier: Operating System :: OS Independent\r\nClassifier: Programming Language :: Python :: 3.7\r\nDescription-Content-Type: text/markdown\r\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Gulats/playmate", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "playmate", "package_url": "https://pypi.org/project/playmate/", "platform": "", "project_url": "https://pypi.org/project/playmate/", "project_urls": { "Homepage": "https://github.com/Gulats/playmate" }, "release_url": "https://pypi.org/project/playmate/0.5.6/", "requires_dist": null, "requires_python": "", "summary": "Google Play Store async application scraper", "version": "0.5.6" }, "last_serial": 5116546, "releases": { "0.5.3": [ { "comment_text": "", "digests": { "md5": "d24d33006a5a60e24ee2937db46f940d", "sha256": "4b4ae276ae38f0afdf8a83090dcd117d145fabc5420c1a181741a8f85f301e21" }, "downloads": -1, "filename": "playmate-0.5.3.tar.gz", "has_sig": false, "md5_digest": "d24d33006a5a60e24ee2937db46f940d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16438, "upload_time": "2019-04-08T12:36:59", "url": "https://files.pythonhosted.org/packages/7c/83/e5b5edc834a6211ac3aba989d1eae70cc3c5f60877adfa537b98fd06c585/playmate-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "68307dd21db47618bd8f0d60f1cb272d", "sha256": "5a195792e4db372c9919e5c615ec11d4b349249b45d260e517be28a5b21daf7f" }, "downloads": -1, "filename": "playmate-0.5.4.tar.gz", "has_sig": false, "md5_digest": "68307dd21db47618bd8f0d60f1cb272d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16431, "upload_time": "2019-04-08T12:45:32", "url": "https://files.pythonhosted.org/packages/c0/0c/97da9c8d27e1d9cfa34dee4d1729390bb74f56cd012bed73a401e481f376/playmate-0.5.4.tar.gz" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "e878fa3521f78406c07a2490be2904ba", "sha256": "c9140fc76703a0a07498d08c3cba9a98e59a128caa97229de46e04c559a6d187" }, "downloads": -1, "filename": "playmate-0.5.5.tar.gz", "has_sig": false, "md5_digest": "e878fa3521f78406c07a2490be2904ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16431, "upload_time": "2019-04-08T12:53:13", "url": "https://files.pythonhosted.org/packages/30/6d/15d5fc54faf8945425100d856d1627ae874d50c8ae393530bde7db0591b8/playmate-0.5.5.tar.gz" } ], "0.5.6": [ { "comment_text": "", "digests": { "md5": "25928cc351135d86072ca471ddd541f8", "sha256": "637131280a69dc43aa3ffb08028e306b0c018d943d785e5ac5ae08c037a0e36d" }, "downloads": -1, "filename": "playmate-0.5.6.tar.gz", "has_sig": false, "md5_digest": "25928cc351135d86072ca471ddd541f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16435, "upload_time": "2019-04-09T02:52:16", "url": "https://files.pythonhosted.org/packages/08/42/b5e8dfca17ad7d02beec0b1fc1fa27568bef41e328dfdeee7c9444e6a5e9/playmate-0.5.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "25928cc351135d86072ca471ddd541f8", "sha256": "637131280a69dc43aa3ffb08028e306b0c018d943d785e5ac5ae08c037a0e36d" }, "downloads": -1, "filename": "playmate-0.5.6.tar.gz", "has_sig": false, "md5_digest": "25928cc351135d86072ca471ddd541f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16435, "upload_time": "2019-04-09T02:52:16", "url": "https://files.pythonhosted.org/packages/08/42/b5e8dfca17ad7d02beec0b1fc1fa27568bef41e328dfdeee7c9444e6a5e9/playmate-0.5.6.tar.gz" } ] }