{ "info": { "author": "Tishacy", "author_email": "Tishacy@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# SciDownl\n\nDownload pdfs from Scihub via DOI.\n- Easy to use.\n- Easy to deal with captcha.\n- Easy to update Scihub newest domains.\n\n\n\n## Install\n```bash\n$ pip3 install -U scidownl\n```\n\n## Usage\n### Command line\n```bash\n$ scidownl -h\nusage: Command line tool to download pdf via DOI from Scihub.\n [-h] [-c CHOOSE] [-D DOI] [-o OUTPUT] [-u] [-l]\n\noptional arguments:\n -h, --help show this help message and exit\n -c CHOOSE, --choose CHOOSE\n choose scihub url by index\n -D DOI, --DOI DOI the DOI number of the paper\n -o OUTPUT, --output OUTPUT\n directory to download the pdf\n -u, --update update available Scihub links\n -l, --list list current saved sichub urls\n```\n#### Examples\n```bash\n# Update available links of Scihub\n$ scidownl -u\n[INFO] Updating links ...\n[INFO] https://sci-hub.ren\n[INFO] http://sci-hub.ren\n[INFO] http://sci-hub.red\n[INFO] http://sci-hub.se\n[INFO] https://sci-hub.se\n[INFO] http://sci-hub.tw\n\n# Choose scihub url by the index.\n$ scidownl -c 5\nCurrent scihub url: http://sci-hub.tw\n\n# List available links of Scihub. You can see the current scihub url is pointing to the 5th scihub url.\n$ scidownl -l\n [0] https://sci-hub.ren\n [1] http://sci-hub.ren\n [2] http://sci-hub.red\n [3] http://sci-hub.se\n [4] https://sci-hub.se\n* [5] http://sci-hub.tw\n\n# Download to the current directory\n$ scidownl -D 10.1021/ol9910114\n$ scidownl -D 10.1021/ol9910114 -o .\n\n# Download to the specified directory, ie. '-o paper' for downloading to paper directory.\n$ scidownl -D 10.1021/ol9910114 -o paper\n\n# if 'PermessionError' shows, just use sudo. ie:\n$ sudo scidownl -u\n```\n\n### Module\n\nIf you have a list of DOIs, using `scidownl` in your python scripts for downloading all of the papers is recommended.\n\nDownload single paper via DOI.\n```python\nfrom scidownl.scihub import *\n\nDOI = \"10.1021/ol9910114\"\nout = 'paper'\nsci = SciHub(DOI, out).download(choose_scihub_url_index=3)\n```\n\nDowloading a list of DOIS by simply using a for loop.\n```python\nfrom scidownl.scihub import *\n\nDOIs = [...]\nout = 'paper'\nfor doi in DOIS:\n SciHub(doi, out).download(choose_scihub_url_index=3)\n```\n\nUpdate available Scihub links.\n```python\nfrom scidownl.update_link import *\n\n# Use crawling method to update available Scihub links.\nupdate_link(mod='c')\n# Use brute force search method to update available Scihub links.\nupdate_link(mod='b')\n```\n## RELEASE\n- v0.1.0: First release.\n- v0.2.0:\n - Optimized the download speed.\n - Optimized the captcha processment.\n- v0.2.1:\n - Applied stream download.\n - Display of download progress is added.\n - Fixed bugs of invalid scihub links.\n- v0.2.2:\n - Add new source website.\n - Add `-l/--list` argument in command line tool.\n- v0.2.3:\n - Fix bugs of empty filename and wrong scidhub urls.\n - Fix bugs in the brute-force method of updating scihub urls.\n- V0.2.4:\n - Fix #2.\n - Fix bugs of error: file name too long.\n- V0.2.5:\n - Reconstruct code.\n - Fix 'no content-length' error.\n - Add `-c/--choose` argument for manually choosing scihub url used.\n- V0.2.6:\n - Fix bug where retry time too long.\n\n## LICENSE\n\nCopyright (c) 2019 tishacy.\n\nLicensed under the [MIT License](./LICENSE).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Tishacy/SciDownl", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "scidownl", "package_url": "https://pypi.org/project/scidownl/", "platform": "", "project_url": "https://pypi.org/project/scidownl/", "project_urls": { "Homepage": "https://github.com/Tishacy/SciDownl" }, "release_url": "https://pypi.org/project/scidownl/0.2.6/", "requires_dist": [ "termcolor (>=1.1.0)", "mspider (>=0.2.5)", "requests (>=2.18.4)", "Pillow (>=6.0.0)", "beautifulsoup4 (>=4.7.1)" ], "requires_python": "", "summary": "Download pdfs from Scihub via DOI.", "version": "0.2.6" }, "last_serial": 5916078, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "af583a1a163d227890712b3af06744da", "sha256": "36f40ba927da2d679e9ae1deb60a9dd2faea883f3ad9dcb3748717d6bb9669fa" }, "downloads": -1, "filename": "scidownl-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "af583a1a163d227890712b3af06744da", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6694, "upload_time": "2019-04-11T09:03:35", "url": "https://files.pythonhosted.org/packages/e5/68/49e6cdcf8ec9e1ec0a220b7e1f42beed04b750496b896df667aa094233dc/scidownl-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0aa34ad3f70f3bcb14a0f8606539f8fa", "sha256": "71e93cf37c72d1519dd3d701ad8e1d62093d072ac232f1ffb969281d318c7daa" }, "downloads": -1, "filename": "scidownl-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0aa34ad3f70f3bcb14a0f8606539f8fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4645, "upload_time": "2019-04-11T09:03:37", "url": "https://files.pythonhosted.org/packages/41/e8/2807ce4834287447ffa52b14dc775ded780e7f22971a970752fc73745fe9/scidownl-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "b5661eed848148ed53097929b13bb9a2", "sha256": "889e06853b9383d1a5179a0ed8693921c4a53cf07b5968e0806a9818bad9a9f5" }, "downloads": -1, "filename": "scidownl-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b5661eed848148ed53097929b13bb9a2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6924, "upload_time": "2019-04-12T18:10:36", "url": "https://files.pythonhosted.org/packages/c0/98/00eb76d8d0f10b550d478185c3d76f9fcf42a6bda8f5fb6002b2f1bc3876/scidownl-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74782b7c27ac8c06c1afe56c345ef32a", "sha256": "b3ed081193b2bd584eff3ec5a6b2f77cd78a76d3ba639cb4aed2fed1962e030f" }, "downloads": -1, "filename": "scidownl-0.2.0.tar.gz", "has_sig": false, "md5_digest": "74782b7c27ac8c06c1afe56c345ef32a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4955, "upload_time": "2019-04-12T18:10:38", "url": "https://files.pythonhosted.org/packages/9b/87/049d80d1b594a4e0ea8776b2f5b7327b9836318addac83b49af48093b0e2/scidownl-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "babfe12140033ca9f4ea4c9acb14c46e", "sha256": "f023a5c2b69e6e10dff4750d1f5554654aa17c7f23aae9e997ff93db95e6d552" }, "downloads": -1, "filename": "scidownl-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "babfe12140033ca9f4ea4c9acb14c46e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7211, "upload_time": "2019-04-20T16:07:06", "url": "https://files.pythonhosted.org/packages/85/d1/013b27fd96e7c9f01598c11a5a5bc286f6a5d0e6655d023c3fea7557cb94/scidownl-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff34cac98ec08a76bd22648da819e2a7", "sha256": "3e87316cf92f90cbd68e647d944188139988136fa474e0845c0a9ca56003d5c6" }, "downloads": -1, "filename": "scidownl-0.2.1.tar.gz", "has_sig": false, "md5_digest": "ff34cac98ec08a76bd22648da819e2a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5221, "upload_time": "2019-04-20T16:07:10", "url": "https://files.pythonhosted.org/packages/24/25/20e5a5d4d47608d36c164f7ef8d04a421a5383bff80c3fb49c261a77df70/scidownl-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "ec283134e9788f7d2803ad18b97c6c2b", "sha256": "cc2ee45531e8f816e73fd0f7fcd2dedfd3db2ba4a7ce99d9b8518e97389a940f" }, "downloads": -1, "filename": "scidownl-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ec283134e9788f7d2803ad18b97c6c2b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7564, "upload_time": "2019-05-16T13:20:49", "url": "https://files.pythonhosted.org/packages/98/be/cf9257b6bf80d2734bec70642aa0f2a6b1335d2a06321cb98964b039c791/scidownl-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "35d6dd4ba9c897217caef3e933aa495b", "sha256": "17418c3688d5fc3ad01a7106dcc741bb7d7b2f4c80049726434c69a453533de9" }, "downloads": -1, "filename": "scidownl-0.2.2.tar.gz", "has_sig": false, "md5_digest": "35d6dd4ba9c897217caef3e933aa495b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5575, "upload_time": "2019-05-16T13:20:54", "url": "https://files.pythonhosted.org/packages/72/b8/200229f234cd350df69f1d9f0ae95b1f70cf43a93219ec3804630159869a/scidownl-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "18343126f49188c68b83f273aa3581c1", "sha256": "1469202adec781b1266486df4df052c1ba3a97a3b31ed9cd14687185c169d8fd" }, "downloads": -1, "filename": "scidownl-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "18343126f49188c68b83f273aa3581c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7818, "upload_time": "2019-07-19T17:01:00", "url": "https://files.pythonhosted.org/packages/c3/59/f94c7458c59e678e7d6d96de6725168db19134b86f8c1ac363a2a87891b1/scidownl-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd6e53005e45edcb60afc21b55ff1b82", "sha256": "29809192e7a6c49780658b41ff1a819ae7bc26fda052657670330182f44663ce" }, "downloads": -1, "filename": "scidownl-0.2.3.tar.gz", "has_sig": false, "md5_digest": "fd6e53005e45edcb60afc21b55ff1b82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5792, "upload_time": "2019-07-19T17:01:05", "url": "https://files.pythonhosted.org/packages/c7/e9/304ab255790dab3ce64958527af021d8e845ecf9800340a60136ccf7f9f7/scidownl-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "4b018a651a1cd2b9b1e43ec4734d247a", "sha256": "068ed34992ab754a390fd54dda5d6332200569ca955f7c84a013355f2eee2232" }, "downloads": -1, "filename": "scidownl-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "4b018a651a1cd2b9b1e43ec4734d247a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7868, "upload_time": "2019-07-30T10:43:51", "url": "https://files.pythonhosted.org/packages/27/a2/daacd0358f74d2b690f9a824e0b2a8df461ad0a23584ec1f1104d26f886b/scidownl-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3274b614336c60036722b6e06c465786", "sha256": "1415cbf651d69c2b4e367c80f5b873611fe5227ce506a60b837e363519a02aaa" }, "downloads": -1, "filename": "scidownl-0.2.4.tar.gz", "has_sig": false, "md5_digest": "3274b614336c60036722b6e06c465786", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5844, "upload_time": "2019-07-30T10:44:10", "url": "https://files.pythonhosted.org/packages/c7/0f/10d0d4e1f7e23b8d0d6da4aeea02f037589fbf73220937bd66a6bf47d23f/scidownl-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "51e2c47e975ddc527d42fecdf494fc43", "sha256": "dd6b95ff5c6f1e04d263a7d206a6a2795ae47fc07b5f33c30b8ee705f341f734" }, "downloads": -1, "filename": "scidownl-0.2.5-py3-none-any.whl", "has_sig": false, "md5_digest": "51e2c47e975ddc527d42fecdf494fc43", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9068, "upload_time": "2019-08-02T17:42:34", "url": "https://files.pythonhosted.org/packages/69/62/332207df6b3ef479e977d7019856bb09314e9babe24b153ec3edb32907aa/scidownl-0.2.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4950eaa863ef349ef6e0a2fe1b923149", "sha256": "f50258c04c1589af0b85c4bb7ffb3fb141f576b83a772353c2da318a9b9cb656" }, "downloads": -1, "filename": "scidownl-0.2.5.tar.gz", "has_sig": false, "md5_digest": "4950eaa863ef349ef6e0a2fe1b923149", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6922, "upload_time": "2019-08-02T17:42:41", "url": "https://files.pythonhosted.org/packages/3a/58/4981cfa41e3eb2291fa86803d07a01d5af3ebb5a79e0dee43210cb5ede2c/scidownl-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "97b31d24bca3511c26214499afdd7e91", "sha256": "1695f74b016f21ac53d8f424751627d9d0d455d099c7fa8497c6da540d4af2b3" }, "downloads": -1, "filename": "scidownl-0.2.6-py3-none-any.whl", "has_sig": false, "md5_digest": "97b31d24bca3511c26214499afdd7e91", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9130, "upload_time": "2019-10-02T05:02:26", "url": "https://files.pythonhosted.org/packages/c8/bc/9b9f6b40c8591aae9902d80bee91b519e3c4902a0704a0f6bd4d87206282/scidownl-0.2.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce405d07ee741d476eb63ab390dc62a5", "sha256": "cc06c8c7e1f8da6b80edc5083f93adfb55abea49cd443c52edd844f552a8dc43" }, "downloads": -1, "filename": "scidownl-0.2.6.tar.gz", "has_sig": false, "md5_digest": "ce405d07ee741d476eb63ab390dc62a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6985, "upload_time": "2019-10-02T05:02:34", "url": "https://files.pythonhosted.org/packages/2c/a2/5529df23943c419d5445b3edecee6fcae6d1d7cf3a3e7601cc955fbff32a/scidownl-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "97b31d24bca3511c26214499afdd7e91", "sha256": "1695f74b016f21ac53d8f424751627d9d0d455d099c7fa8497c6da540d4af2b3" }, "downloads": -1, "filename": "scidownl-0.2.6-py3-none-any.whl", "has_sig": false, "md5_digest": "97b31d24bca3511c26214499afdd7e91", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9130, "upload_time": "2019-10-02T05:02:26", "url": "https://files.pythonhosted.org/packages/c8/bc/9b9f6b40c8591aae9902d80bee91b519e3c4902a0704a0f6bd4d87206282/scidownl-0.2.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce405d07ee741d476eb63ab390dc62a5", "sha256": "cc06c8c7e1f8da6b80edc5083f93adfb55abea49cd443c52edd844f552a8dc43" }, "downloads": -1, "filename": "scidownl-0.2.6.tar.gz", "has_sig": false, "md5_digest": "ce405d07ee741d476eb63ab390dc62a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6985, "upload_time": "2019-10-02T05:02:34", "url": "https://files.pythonhosted.org/packages/2c/a2/5529df23943c419d5445b3edecee6fcae6d1d7cf3a3e7601cc955fbff32a/scidownl-0.2.6.tar.gz" } ] }