{ "info": { "author": "Matthias Kuech", "author_email": "halde@matthias-kuech.de", "bugtrack_url": null, "classifiers": [], "description": "playstation-price-drop-alert\n============================\n\n|Build Status|\n\nCommand line tool for alerting price drops in the Sony Entertainment\nNetwork aka PlayStation Network\n\nDescription\n-----------\n\nThe Sony Entertainment Network (SEN) uses CIDs to identify items in it's\ncatalogue. In order to alert you on the desired price of an SEN you need\nthe CID. Use your Browser (cid GET parameter in URL) or this script\n(--search) to retrieve the CID.\n\nIn order to check the price of an item. You need a store identifier.\nThese store identifiers are known to work:\n\n- DE/de (Germany)\n- GB/en (Great Britain)\n- US/en (United States)\n- SE/en (Sweden)\n- JP/jp (Japan)\n\nPrices are always in the local currency. Therefore it is \u20ac for DE/de and\n\u00a3 for GB/en. Additionaly, prices are that for PlayStation Plus users.\n\nInstallation\n------------\n\nUse PyPI to install ``psnprices``\n\n::\n\n pip install psnprices\n\nThis will install the Python modules and also the following command line\ntools\n\n::\n\n psncli\n psnmailalert\n psndealsmailalert\n\nUsage\n-----\n\nMail alerting for single alerts you define yourself\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nJust run ``psnmailalert`` for mail alerting. See example below. Alerts\nare set in the ``alerts.csv`` file. If no store is set. The german /\neuropean store is used as a default.\n\nCommand line interface\n~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n usage: psncli [-h] [--id ID] [--container CONTAINER] [--store STORE]\n [--price PRICE] [--query QUERY]\n\n optional arguments:\n -h, --help show this help message and exit\n --id ID, -i ID CID of game to check\n --container CONTAINER, -c CONTAINER\n Container to list\n --store STORE, -s STORE\n regional PSN store to check. Default: 'DE/de'\n --price PRICE, -p PRICE\n desired price of game\n --query QUERY, -q QUERY\n Name of item to search for\n\nRetrieving UTF-8 encoded output on terminals\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nYou may have to tell Python that your terminal is capable of dealing\nwith UTF-8 outputs. Some PSN items are annotated with trademark,\ncopyright or foreign language specific symbols. To do so set\n``export PYTHONIOENCODING=utf-8`` in your terminal window.\n\nMail alerting for collections of price reductions\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe PlayStation Network creates collections for price reductions. Run\n``python psndealsmailalert.py`` for watching those collections and be\nalerted if there are new reductions. Alerts for collections are set in\nthe ``alert_deal_containers.csv`` file.\n\nExample\n-------\n\nYou may run this script with the following command line variants:\n\nMail alerting - Get a mail when alerts have been met\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nWith ``psnmailalert`` you may set alerts for price drops in the\n``alerts.csv`` file. The first value is the CID for the item, the second\nis the price to be matched in order to alert you by mail, and the second\nvalue is the store to search in. You may mix stores in the\n``alerts.csv``. After a price has been matched, the alert is removed\nfrom ``alerts.csv``. You will not get any further alerts for that item.\n\n::\n\n P0001-NPEJ00305_00-B000000000001030,19.00,DE/de\n P0001-NPEJ00305_00-B000000000001030,19.00,DE/de\n EP0102-CUSA02521_00-MEGAMANLEGACY000,7.00\n UP0102-CUSA02516_00-MEGAMANLEGACY000,7.00,US/en\n P0101-ULES01372_00-GPCMETALGE000001,10.00,DE/de\n\nIf the store value is left blank, the script tries to extract the store\nfrom the beginning character of the CID.\n\nIn order to receive mails you have to set your account settings in the\nfile ``mailconfig.json``. See ``mailconfig.json_example`` for an example\nconfig.\n\nTo run ``psnmailalert``, just type:\n\n::\n\n /psnmailalert\n\nExample mail\n^^^^^^^^^^^^\n\n.. figure:: https://raw.githubusercontent.com/snipem/psnprices/master/res/mail.png\n :alt: Mail with alerts\n\n Mail with alerts\n\nSearching for the CID of an item\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nDefine the name of a game and the store.\n\n::\n\n psncli --query \"metal gear solid peace walker psp\" --store DE/de\n\nYou will get a result containing one to many search results with the\nCID. The first output of each search line is the CID, the second the\nname, the third the supported systems and the last is a description of\nthe item type in the local store language. It is \"Vollversion\" here\nwhich means \"full version\" in German.\n\n::\n\n EP0101-ULES01372_00-GPCMETALGE000001 Metal Gear Solid: Peace Walker [PSP] PS Vita, PSP\u00ae 19.99 Vollversion\n\nCheck if desired price has been met\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe price is in local currency. As exit statuses render the outcome of\nthe alert, you may send you e-mails or desktop notifications with ``&&``\nor ``||``. In this example, there is a string printed to the console.\n\n::\n\n psncli --id EP0101-ULES01372_00-GPCMETALGE000001 --store DE/de --price 15.00 &&\n echo \"Price matched, let's buy Metal Gear Solid PW\"\n\nDisclaimer\n----------\n\nThis script is not associated with Sony, Sony PlayStation, the\nPlayStation Network in any kind. It consumes an public interface that is\npublicly advertised to the browser to list store contents.\n\n.. |Build Status| image:: https://travis-ci.org/snipem/playstation-price-drop-alert.svg?branch=master\n :target: https://travis-ci.org/snipem/playstation-price-drop-alert", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/snipem/psnprices/archive/1.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/snipem/psnprices", "keywords": "playstation,store,prices", "license": "GPL2", "maintainer": null, "maintainer_email": null, "name": "psnprices", "package_url": "https://pypi.org/project/psnprices/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/psnprices/", "project_urls": { "Download": "https://github.com/snipem/psnprices/archive/1.0.tar.gz", "Homepage": "https://github.com/snipem/psnprices" }, "release_url": "https://pypi.org/project/psnprices/1.0/", "requires_dist": null, "requires_python": null, "summary": "An interface for the undocumented Sony PlayStation Store PSN Api", "version": "1.0" }, "last_serial": 2652918, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "852ca2d8c4fab617316c49d477df1abf", "sha256": "cd50d04c7ca2721e965b7ee3b60ad3e6583104eeb8eb5f7d49164fd408509184" }, "downloads": -1, "filename": "psnprices-1.0.tar.gz", "has_sig": false, "md5_digest": "852ca2d8c4fab617316c49d477df1abf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12186, "upload_time": "2017-02-19T11:43:17", "url": "https://files.pythonhosted.org/packages/5f/47/b5723ff0580dc78becb25452e6381538e103f14ad4af23b630d727af5d0b/psnprices-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "852ca2d8c4fab617316c49d477df1abf", "sha256": "cd50d04c7ca2721e965b7ee3b60ad3e6583104eeb8eb5f7d49164fd408509184" }, "downloads": -1, "filename": "psnprices-1.0.tar.gz", "has_sig": false, "md5_digest": "852ca2d8c4fab617316c49d477df1abf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12186, "upload_time": "2017-02-19T11:43:17", "url": "https://files.pythonhosted.org/packages/5f/47/b5723ff0580dc78becb25452e6381538e103f14ad4af23b630d727af5d0b/psnprices-1.0.tar.gz" } ] }