{ "info": { "author": "Anh Van Giang", "author_email": "vangianganh@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Build Tools" ], "description": "### Install\n```sh\n$ pip install pybooks\n```\n\n## Usage\n\nSimple usage\n\n```\nfrom pybooks.pbook import Pbooks \n\npbook = Pbooks( author='jerome',\n title='elements of statistic',\n weights=(9, 1)) \n \n\npbook.main()\n```\n\nThe ```weights``` argument is used to calculate the accuracy of all the items found and the final chosen url. For example, a ```weights``` of ```(9, 1)``` will place more important on the author accuracy than title's hence it is more likely that the result will have author's name more similar to the input. Default weights are ```(1, 1)```\n\nOptional arguments are ```show_result: Print the result at the end or not```, ```threshold: Only print result with accuracy higher than threshold``` and ```log: Show process while running or not```, etc. More arguments can be found in the documentation of the code.\n\n### You can modify or add additional sources by editing the file pybooks/sources.json and follow the existing format within the file.\n\n### Sources.json format, rules\n\nExample: \n[Library Genesis with elements of statistics as search term](http://gen.lib.rus.ec/search.php?&req=elements+of+statistics&phrase=1&view=simple&column=def&sort=def&sortmode=ASC&page=1)\n\nThe only components we need in the URL are: ```request: ?req=...```, ```delimiter: + (elements+of+statistics)``` and ```pagination: \npage=...``` and ```term_concatenation: & (req=...&page=...)```\n\n```\nINSIDE SOURCES.JSON\n\nURL: main url without search terms\nURL_RULES: dictionary contains keys and values as search rules.\nHTML_RULES: Contains nested dictionary represent necessary components to conduct searches such as tags, attributes for titles, authors, rows and page body\n.POSITION: The position of the that element in the row if there are other similar elements with similar tag and attributes, leave as null if it is unique\n.TAG: The tag of the desired element\n.ATTRIBUTE: Attributes of the tag, for exanple: {\"class\": \"id\", \"...\": \"..\", ...}. Leave the value of a key as true if an attribute has no value\n```\n### COMMAND LINE USAGE\nYou can use the package directly from the command line\nExample: Searching a book with title: \"Elements of statistical learning\" and author: \"Jerome Friedman\"\nYou can add pbook.exe to environment variables and use it from the command line by this command with ```%PATH%``` as your path to pybooks directory (folder), usually found in ```\\Python{version}\\Lib\\pybooks```.\n```sh\nsetx PATH \"%PATH%\n```\n\n```sh\npbook -a \"jerome friedman\" -t \"elements of statistical learning\"\n```\n```sh\nOPTIONAL ARGUMENTS\n-h, --help show this help message and exit\n -a AUTHOR, --author AUTHOR\n Author of the book you want to find\n -t TITLE, --title TITLE\n Title of the book you want to find\n -w WEIGHTS, --weights WEIGHTS\n Assign author and title weight to the final accuracy\n calculation\n -th THRESHOLD, --threshold THRESHOLD\n Only get results above the threshold amount\n -l LOG, --log LOG Print out the process\n -s SHOW, --show SHOW Show result at the end of running\n -br BREAK_AT, --break-at BREAK_AT\n Stop when encounter a book with accuracy higher than\n or equal to this number\n -m METHOD, --method METHOD\n Choose a book evaluation method\n\n```\n\n### LICENSE\n\nMIT", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/AnhVanGiang/pybooks/archive/v_15.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AnhVanGiang/pybooks", "keywords": "scraper,books,python", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pybooks", "package_url": "https://pypi.org/project/pybooks/", "platform": "", "project_url": "https://pypi.org/project/pybooks/", "project_urls": { "Download": "https://github.com/AnhVanGiang/pybooks/archive/v_15.tar.gz", "Homepage": "https://github.com/AnhVanGiang/pybooks" }, "release_url": "https://pypi.org/project/pybooks/1.4.3/", "requires_dist": null, "requires_python": "", "summary": "Find a book download URL from multiple online book sources", "version": "1.4.3" }, "last_serial": 4862169, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "15bdd678e78df6bc50bcd675f83213d8", "sha256": "fa9f57532429dceb3ba93e12555d1dc7cd82b9c04262be04ecd39410bc050f11" }, "downloads": -1, "filename": "pybooks-0.1.tar.gz", "has_sig": false, "md5_digest": "15bdd678e78df6bc50bcd675f83213d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3909, "upload_time": "2019-02-19T01:23:14", "url": "https://files.pythonhosted.org/packages/39/b9/324611aa17cabd989ac09ad5cfa69d790d4776a0f4a4d7e77dc8bc3c03f5/pybooks-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "0d45b8c0f6b1fb9aa59c8e319284f4ad", "sha256": "36f35b0c6252a684b574205ef9f40673c6546d7cc8c0e94b3ceb734e90be05e9" }, "downloads": -1, "filename": "pybooks-0.2.tar.gz", "has_sig": false, "md5_digest": "0d45b8c0f6b1fb9aa59c8e319284f4ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3969, "upload_time": "2019-02-19T01:54:37", "url": "https://files.pythonhosted.org/packages/79/86/892fc3908db5020413fc43be7a59a2b59a519e2714df12f200dcdc1b77f6/pybooks-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "d630a994e846aec1ff52cc4224ae0b49", "sha256": "80f1db5c75380dff4d1874c630f305c0c5c0ea511c51d16711489dfc56657a63" }, "downloads": -1, "filename": "pybooks-0.3.tar.gz", "has_sig": false, "md5_digest": "d630a994e846aec1ff52cc4224ae0b49", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3951, "upload_time": "2019-02-19T02:02:40", "url": "https://files.pythonhosted.org/packages/b8/31/53af05b2bf652654ba8f9e920918c81c73c93efdb228f749d4d293e4d37c/pybooks-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "de31e1364bae77ab4f4cfdf454f6e6e4", "sha256": "77f9b5281fdc3b3aa9acbd2be8efdea336ce393156d2f6f0b050a226b84a48bc" }, "downloads": -1, "filename": "pybooks-0.4.tar.gz", "has_sig": false, "md5_digest": "de31e1364bae77ab4f4cfdf454f6e6e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4429, "upload_time": "2019-02-19T12:34:22", "url": "https://files.pythonhosted.org/packages/f5/c0/baa5fd3765cb3289a8531f1bff2ae658477f8499b1fadaad8ac0114607e6/pybooks-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "0bb4ea13fe9bb13e7b2f653960c97634", "sha256": "20dda9455153acf638fb251e917f80056a4b81be89d4005a9956613fc117ab29" }, "downloads": -1, "filename": "pybooks-0.5.tar.gz", "has_sig": false, "md5_digest": "0bb4ea13fe9bb13e7b2f653960c97634", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4852, "upload_time": "2019-02-19T12:47:34", "url": "https://files.pythonhosted.org/packages/9f/9c/79e9ec7a4ac9618fb760805ac51e7ce62ce5e03a5ad9b54eb126f7a060ad/pybooks-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "ebe7b049c67d069b05339264054dfe4b", "sha256": "ce76cefcd389bdefcb13afece320ea9bd37bfe29609dd94c4d2019e6c1290cf5" }, "downloads": -1, "filename": "pybooks-0.6.tar.gz", "has_sig": false, "md5_digest": "ebe7b049c67d069b05339264054dfe4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4812, "upload_time": "2019-02-19T12:51:13", "url": "https://files.pythonhosted.org/packages/0e/b6/8558bbabc24aae1877bddf5df35e63bfd403414c75ade25e6e9f53424f21/pybooks-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "0309c2e756070b2095c96e78f43c5622", "sha256": "fa164a7355576a3cd66db43c5a1d102ed96f26fd8764d93f64cdc8ca0819e851" }, "downloads": -1, "filename": "pybooks-0.7.tar.gz", "has_sig": false, "md5_digest": "0309c2e756070b2095c96e78f43c5622", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4847, "upload_time": "2019-02-19T12:55:39", "url": "https://files.pythonhosted.org/packages/aa/a1/dfcf2d9ef855d179a146b49d9336d5f7bb24e011650bd2efa8675d69f16e/pybooks-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "5da171b7d7d736f390b69c1b9d7d29e5", "sha256": "e989937adceba68956afa24dc3a73442be376a03ca34f740dd66c25d5bca9f47" }, "downloads": -1, "filename": "pybooks-0.8.tar.gz", "has_sig": false, "md5_digest": "5da171b7d7d736f390b69c1b9d7d29e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4846, "upload_time": "2019-02-19T13:08:29", "url": "https://files.pythonhosted.org/packages/a0/d1/7e402bda3a07f2f5b17c364e38ab9f54e5dbc5ddab31631b2d82b14ffeaf/pybooks-0.8.tar.gz" } ], "0.9": [ { "comment_text": "", "digests": { "md5": "a4b647f2c514c7e15cc0ce868d2025f9", "sha256": "877afec29a54e109964593c87d5215ad0f02ead931610906ee293d6b0df96c01" }, "downloads": -1, "filename": "pybooks-0.9.tar.gz", "has_sig": false, "md5_digest": "a4b647f2c514c7e15cc0ce868d2025f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4859, "upload_time": "2019-02-19T13:13:59", "url": "https://files.pythonhosted.org/packages/4f/89/104119aa3e5e7674dcad606df95a3af5859c34366be06b59b5740703beb0/pybooks-0.9.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "114429292a29ff095a4d9cf324362221", "sha256": "14b374eeeaa8eab1a88bdd1953701e20acdc229500b35a25b3d2e65cbf6e2ee2" }, "downloads": -1, "filename": "pybooks-1.0.tar.gz", "has_sig": false, "md5_digest": "114429292a29ff095a4d9cf324362221", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5091, "upload_time": "2019-02-19T21:41:02", "url": "https://files.pythonhosted.org/packages/b3/98/362ad9b5e6df5550f3c42841584f90c0d66bf385020770ca65d2101d1235/pybooks-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "9103c9fefdd579c8ea80c89a038a4119", "sha256": "a04e01fc0c30fef34e2e8189a97b2501ca22e7133e5005f70bf4199822004205" }, "downloads": -1, "filename": "pybooks-1.1.tar.gz", "has_sig": false, "md5_digest": "9103c9fefdd579c8ea80c89a038a4119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5286, "upload_time": "2019-02-19T22:31:45", "url": "https://files.pythonhosted.org/packages/b0/37/99a8e4562ea1911d943bd2fbbd9090979a58c11db538350a9d5f319d04e6/pybooks-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "1db7c79e0fea6b0eaf3fb9c7120f3a12", "sha256": "7dd14c89858d2a91893582fb15e682a2f80f0e0f120f54c321575f74ba3b8646" }, "downloads": -1, "filename": "pybooks-1.2.tar.gz", "has_sig": false, "md5_digest": "1db7c79e0fea6b0eaf3fb9c7120f3a12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5835, "upload_time": "2019-02-21T23:21:25", "url": "https://files.pythonhosted.org/packages/9d/3c/910b055a4e466689762091209bc5b03c654c784ac6c5743885d18417bc1e/pybooks-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "729b5dcfe54b5c94623b94ca20a43489", "sha256": "b2e8f883e887004061d8842d6870d2df165c4f0f62d5b7ca525553d0fe001916" }, "downloads": -1, "filename": "pybooks-1.3.tar.gz", "has_sig": false, "md5_digest": "729b5dcfe54b5c94623b94ca20a43489", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6317, "upload_time": "2019-02-22T23:54:04", "url": "https://files.pythonhosted.org/packages/ed/fc/d4681ac28f08cba55f0400091a84a998fbaec54d003a4b8e0f4779dc4732/pybooks-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "c80c7005666f4e444da7a32885d8bf9d", "sha256": "4c99fc9ed25c71e6dfd3c50ae754cfedac790dd08a428eda7b29a092ee00e4d4" }, "downloads": -1, "filename": "pybooks-1.4.tar.gz", "has_sig": false, "md5_digest": "c80c7005666f4e444da7a32885d8bf9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7840, "upload_time": "2019-02-23T22:20:40", "url": "https://files.pythonhosted.org/packages/9a/43/a62dfa668e532544d263eb8dc6b9e31eec5025545a8fa76f6e105c130823/pybooks-1.4.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "a887489997cfa5281174bfcee873df33", "sha256": "c085cdb7e4b8c0b4aa7b641d332770b5d4cf51b78effa808ae6067a382974c44" }, "downloads": -1, "filename": "pybooks-1.4.1.tar.gz", "has_sig": false, "md5_digest": "a887489997cfa5281174bfcee873df33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7887, "upload_time": "2019-02-23T22:26:19", "url": "https://files.pythonhosted.org/packages/00/06/efc03ac74acb05fcfb0d81a720e23899871b143b1c8fe431b00e6ccad901/pybooks-1.4.1.tar.gz" } ], "1.4.2": [ { "comment_text": "", "digests": { "md5": "59f82ea481e10d26598cff2dedd8251c", "sha256": "b8f8db197f9962019e296e46d8a310d7080881983f76952c04e0df2ec31a5316" }, "downloads": -1, "filename": "pybooks-1.4.2.tar.gz", "has_sig": false, "md5_digest": "59f82ea481e10d26598cff2dedd8251c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8827, "upload_time": "2019-02-23T22:29:25", "url": "https://files.pythonhosted.org/packages/c1/53/0f34c3d97e7a58690c7a4d2dd084a41cfb4d4ff7f8a0d2a166aa35beb347/pybooks-1.4.2.tar.gz" } ], "1.4.3": [ { "comment_text": "", "digests": { "md5": "37375ba965d4b877d6e50fe5b58233c1", "sha256": "119a72d3d89c35774c480696580f7310f0452c4fc3cdd510883da41895e5f267" }, "downloads": -1, "filename": "pybooks-1.4.3.tar.gz", "has_sig": false, "md5_digest": "37375ba965d4b877d6e50fe5b58233c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7955913, "upload_time": "2019-02-24T22:41:10", "url": "https://files.pythonhosted.org/packages/10/73/516998643e751c542fde6fb90f78e8fae9fa3e333e3b103c024155e7f866/pybooks-1.4.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "37375ba965d4b877d6e50fe5b58233c1", "sha256": "119a72d3d89c35774c480696580f7310f0452c4fc3cdd510883da41895e5f267" }, "downloads": -1, "filename": "pybooks-1.4.3.tar.gz", "has_sig": false, "md5_digest": "37375ba965d4b877d6e50fe5b58233c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7955913, "upload_time": "2019-02-24T22:41:10", "url": "https://files.pythonhosted.org/packages/10/73/516998643e751c542fde6fb90f78e8fae9fa3e333e3b103c024155e7f866/pybooks-1.4.3.tar.gz" } ] }