{ "info": { "author": "Asif Jamadar", "author_email": "saluasif@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "|Build|_ |CodeRate|_ |pypi|_\n\n.. |Build| image:: https://scrutinizer-ci.com/g/asifpy/python-smartprice/badges/build.png?b=master\n.. _Build: https://scrutinizer-ci.com/g/asifpy/python-smartprice/\n\n.. |CodeRate| image:: https://scrutinizer-ci.com/g/asifpy/python-smartprice/badges/quality-score.png?b=master\n.. _CodeRate: https://scrutinizer-ci.com/g/asifpy/python-smartprice/\n\n.. |pypi| image:: https://badge.fury.io/py/python-smartprice.svg\n.. _pypi: https://badge.fury.io/py/python-smartprice\n\n\n\n=================\npython-smartprice\n=================\n\nA simple scraping-based python library for MySmartPrice - price comparison site.\n\nIntroduction\n------------\n\nMySmartPrice_ is a platform which provided best seller price across a wide array of categories that include Mobiles, Electronics, Computers, Fashion and Lifestyle, Cameras, Books, Appliances and Personal Care.\n\n\nInstallation\n------------\n\n``pip install python-smartprice``\n\n\nPrerequisites\n-------------\n- Requests\n- BeautifulSoup 4\n- Python 2.7+\n\nQuickstart\n----------\n\nGET PRICE LIST\n--------------\n\nCheck all the below `Supported attributes`_.\n\n.. code-block:: python\n\n >>> from pysmartprice.base import SmartPrice\n >>> smartprice = SmartPrice()\n \n >>> len(smartprice.samsung_mobiles)\n Out[5]: 142\n \n >>> smartprice.samsung_mobiles\n Out[6]: [,\n ,\n ,\n ,\n ,\n ,\n ,\n ]\n \n >>> samsung_mobile = smartprice.samsung_mobiles[0]\n \n >>> samsung_mobile.title\n Out[7]: u'Samsung Galaxy J7'\n \n >>> samsung_mobile.best_price\n Out[8]: '14,299'\n \n >>> samsung_mobile.dumptojson\n Out[9]: \n {u'best_price': u'14,664',\n u'img': u'http://c0028545.cdn1.cloudfiles.rackspacecloud.com/7178-7-thumb.jpg',\n u'product_id': u'7178',\n u'title': u'\\nSamsung Galaxy J7\\n',\n u'url': u'http://www.mysmartprice.com/mobile/samsung-galaxy-j7-msp7178'}\n\nSEARCH PRICE LIST\n-----------------\n\n.. code-block:: python\n \n >>> from pysmartprice.base import SmartPrice\n >>> smartprice = SmartPrice()\n \n >>> smartprice.search('SAMSUNG')\n Out[4]: [,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ,\n ...]\n \n In [3]: len(s.search('SAMSUNG'))\n Out[3]: 1012\n \n In [3]: results = s.search('SAMSUNG')\n \n In [4]: results[0].dumptojson\n Out[4]: \n {u'best_price': u'14,664',\n u'img': u'http://c0028545.cdn1.cloudfiles.rackspacecloud.com/7178-7-thumb.jpg',\n u'product_id': u'7178',\n u'title': u'\\nSamsung Galaxy J7\\n',\n u'url': u'http://www.mysmartprice.com/mobile/samsung-galaxy-j7-msp7178'}\n \nGET SELLERS DETAILS\n-------------------\n\n.. code-block:: python\n\n >> from pysmartprice.base import SmartPrice\n >> smartprice = SmartPrice()\n \n >> results = smartprice.sellers('Samsung Galaxy J2')\n >> results\n Out[4]: []\n \n In [5]: results[0].dumptojson\n Out[5]: \n {'best_price': '8,199',\n 'img': 'http://c0028545.cdn1.cloudfiles.rackspacecloud.com/7448-6-thumb.jpg',\n 'product_id': '7448',\n 'title': 'Samsung Galaxy J2',\n 'sellers': [\n {'logo': u'http://c223968.r68.cf1.rackcdn.com/syberplace_store.png',\n 'name': u'Seller:\\nSyberplace',\n 'price': u'8,199',\n 'rating': u'5/5'},\n {'logo': u'http://c223968.r68.cf1.rackcdn.com/amazon_store.png',\n 'name': u'Seller:Amazon Seller',\n 'price': u'8,330',\n 'rating': u'4.5/5'},\n {'logo': u'http://c223968.r68.cf1.rackcdn.com/ebay_store.png',\n 'name': u'Seller:Bberry.stores',\n 'price': u'8,215',\n 'rating': u'5/5'},\n {'logo': u'http://c223968.r68.cf1.rackcdn.com/paytm_store.png',\n 'name': u'Seller:RYAISHA RETAILS PVT LTD',\n 'price': u'8,496',\n 'rating': u'3.2/5'},\n {'logo': u'http://c223968.r68.cf1.rackcdn.com/indiatimes_store.png',\n 'name': u'Seller:Indiatimes',\n 'price': u'8,314',\n 'rating': u'2.5/5'},\n {'logo': u'http://c223968.r68.cf1.rackcdn.com/flipkart_store.png',\n 'name': u'Seller:WS Retail',\n 'price': u'8,499',\n 'rating': u'4.2/5'}],\n 'url': 'http://www.mysmartprice.com/mobile/samsung-galaxy-j2-msp7448'}\n\n\n\nSupported attributes\n--------------------\nGet the best prices for the below attributes\n\n- mobiles\n- samsung_mobiles\n- nokia_mobiles\n- micromax_mobiles\n- iphones\n- htc_mobiles\n- tablets\n- samsung_tablets\n- lenovo_tablets\n- micromax_tablets\n- apple_ipads\n- laptops\n- hp_laptops\n- dell_laptops\n- lenovo_laptops\n- sony_laptops\n- toshiba_laptops\n- macbooks\n- samsung_laptops\n- tvs\n- samsung_tvs\n- sony_tvs\n- lg_tvs\n- panasonic_tvs\n- sharp_tvs\n\n\n.. _MySmartPrice: http://www.mysmartprice.com/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/asifpy/python-smartprice", "keywords": "smartprice,price comparision,scrapping", "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "python-smartprice", "package_url": "https://pypi.org/project/python-smartprice/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-smartprice/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/asifpy/python-smartprice" }, "release_url": "https://pypi.org/project/python-smartprice/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "A simple scraping-based python library for MySmartPrice", "version": "0.0.3" }, "last_serial": 1925400, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "bfff9e0de4c3ffb717701d7b82509a53", "sha256": "e2cd294e2d759dc5abcb24b63e85e02554ba442f144016b093b7f9a5658c5a10" }, "downloads": -1, "filename": "python-smartprice-0.0.1.tar.gz", "has_sig": false, "md5_digest": "bfff9e0de4c3ffb717701d7b82509a53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7801, "upload_time": "2016-01-03T06:14:56", "url": "https://files.pythonhosted.org/packages/96/68/e9ef47acf56fe104b3ad01ada279a4eb942950f2cf1db7c762070d4544de/python-smartprice-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c140daaac7be6986c1db7c472cc0306e", "sha256": "053071b10feedadd2bd71cdb78622607e58e581290c23a7fddb50edf88883a3f" }, "downloads": -1, "filename": "python-smartprice-0.0.2.tar.gz", "has_sig": false, "md5_digest": "c140daaac7be6986c1db7c472cc0306e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8364, "upload_time": "2016-01-10T06:30:49", "url": "https://files.pythonhosted.org/packages/01/ae/b4accc9caf49a7300ddc7b673dde79c883b2fa552f3ee3ef7052a3fee01a/python-smartprice-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "ed3906469cb38effa28924636f2dff5a", "sha256": "935a74b17d4fea05bde81c60da76dc3bb30240f0597d83e3e97e8285dab0eafa" }, "downloads": -1, "filename": "python-smartprice-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ed3906469cb38effa28924636f2dff5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9634, "upload_time": "2016-01-27T12:18:00", "url": "https://files.pythonhosted.org/packages/da/e7/8db6458d19e9988cbf5584c956a43d971fe412e8eb3c6588b5bf933f57c1/python-smartprice-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ed3906469cb38effa28924636f2dff5a", "sha256": "935a74b17d4fea05bde81c60da76dc3bb30240f0597d83e3e97e8285dab0eafa" }, "downloads": -1, "filename": "python-smartprice-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ed3906469cb38effa28924636f2dff5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9634, "upload_time": "2016-01-27T12:18:00", "url": "https://files.pythonhosted.org/packages/da/e7/8db6458d19e9988cbf5584c956a43d971fe412e8eb3c6588b5bf933f57c1/python-smartprice-0.0.3.tar.gz" } ] }