{ "info": { "author": "Gary Blackwood", "author_email": "gary@garyblackwood.co.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Internet :: WWW/HTTP :: Indexing/Search", "Topic :: Utilities" ], "description": "

\n\n

\n\n

\n\"PyPI\"\n\"Python\n\"License\" \"Build\n

\n\n

\n\"Asciicast\"\n

\n\n`sp` is a command line utility to search Startpage.com from the terminal.\n\nIt is inspired by the projects [ddgr](https://github.com/jarun/ddgr) and [googler](https://github.com/jarun/googler).\n\n## Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n - [Command Line](#command-line)\n - [Interactive Mode](#interactive-mode)\n- [Examples](#examples)\n- [Browser Support](#browser-support)\n- [Proxies](#proxies)\n- [Development Quick Start](#development-quick-start)\n- [Troubleshooting](#troubleshooting)\n\n## Installation\n\n```sh\n$ pip install spcli\n```\n\n## Usage\n\n### Command Line\n\n```\n$ sp -h\nusage: sp.py [-h] [-d] [-f] [-s SITE] [-t SPAN] [-u] [-v] [-np]\n [--browser BROWSER] [--json] [--no-color]\n [keywords [keywords ...]]\n\nSearch Startpage.com from the terminal.\n\npositional arguments:\n keywords search keywords\n\noptional arguments:\n -h, --help show this help message and exit\n -d, --debug enable debug logging\n -f, --first open the first result in a web browser\n -s SITE, --site SITE search a site\n -t SPAN, --time SPAN time limit search to 1 d|w|m|y (day,week,month,year)\n -u, --unsafe disable the family filter\n -v, --version show program's version number and exit\n -np, --no-prompt do not enter interactive mode\n --browser BROWSER open results using this web browser\n --json output the results in JSON; implies --no-prompt\n --no-color disable color output\n\nVersion 1.0.2\nCopyright \u00c2\u00a9 2018 Gary Blackwood \nLicense: GPLv3\nWebsite: https://github.com/garee/sp\n```\n\n### Interactive Mode\n\n```\nf view the first set of results\nn view the next set of results\np view the previous set of results\n[index] open search result in web browser\nc [index] copy the search result link to the clipboard\ns KEYWORDS perform a search for KEYWORDS\n? show help\nq exit\n* all other inputs are treated as new search keywords\n```\n\n## Examples\n\n1. Search for terms.\n\n```\n$ sp hello world\n```\n\n2. Search `bbc.co.uk` for news about brexit:\n\n```\n$ sp -s bbc.co.uk brexit\n```\n\n3. Search for results from the past 24 hours.\n\n```\n$ sp -t d barcelona fc\n```\n\n4. Open the first result automatically\n\n```\n$ sp -f python docs\n```\n\n5. Disable safe search.\n\n```\n$ sp -u pawn\n```\n\n6. Output in JSON format.\n\n```\n$ sp --json climate change papers\n```\n\n## Browser Support\n\nIf the `BROWSER` environment variable exists, it will be used to open search results. If not, `sp` will attempt to use one from the [this list](https://docs.python.org/2/library/webbrowser.html#webbrowser.register).\n\nYou can specify which browser to use using the `--browser` flag. This also accepts a path to the browser executable.\n\n```sh\n$ sp --browser firefox\n```\n\n## Proxies\n\nThe requests library is used to perform the HTTP requests. You can configure proxies by [setting the environment variables](http://docs.python-requests.org/en/master/user/advanced/#proxies) `HTTP_PROXY` and `HTTPS_PROXY`.\n\n```sh\n$ export HTTP_PROXY=\"http://10.10.1.10:3128\"\n$ export HTTPS_PROXY=\"http://10.10.2.10.1080\"\n```\n\n## Development Quick Start\n\nCreate and activate a virtual environment.\n\n```sh\n$ mkvirtualenv -p python3 sp\n$ workon sp\n```\n\nInstall the dependencies.\n\n```sh\n$ pip install -r requirements.txt\n```\n\nFormat the code.\n\n```sh\n$ black sp/*.py\n```\n\nRun static analysis on the code.\n\n```sh\n$ pylint sp/*.py\n$ flake8 sp/*.py\n```\n\n## Troubleshooting\n\nPlease [create an issue](https://github.com/Garee/sp/issues) for any problems that you encounter.\n\n1. Disable the coloured output if it does not work correctly on your system:\n\n```\n$ sp --no-color\n```\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/garee/sp", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "spcli", "package_url": "https://pypi.org/project/spcli/", "platform": "any", "project_url": "https://pypi.org/project/spcli/", "project_urls": { "Homepage": "https://github.com/garee/sp" }, "release_url": "https://pypi.org/project/spcli/1.0.3/", "requires_dist": [ "colorama (>=0.4.1)", "lxml (>=4.2.5)", "pyperclip (>=1.7.0)", "requests (>=2.20.1)" ], "requires_python": ">=3.4", "summary": "Search Startpage.com from the terminal.", "version": "1.0.3" }, "last_serial": 5953905, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9c9d3d2ead577f61549e2d4f60c3940c", "sha256": "8551e9f363de3594d35114677d49dcaf1690d463775d8bb1b6939e716bee1a55" }, "downloads": -1, "filename": "spcli-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9c9d3d2ead577f61549e2d4f60c3940c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 20417, "upload_time": "2018-12-05T21:57:06", "url": "https://files.pythonhosted.org/packages/30/d9/63b0fdac5bbd0ee24ac0caa1c37c8c060a94c02cb38d5d21c02a692033cd/spcli-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f6ff3d1c056fadef89d9041fc87b7cd6", "sha256": "f17b6e71eff6cb1062b7c74db63c12de54d2422a4dcb6942162b1167a11d4c2c" }, "downloads": -1, "filename": "spcli-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f6ff3d1c056fadef89d9041fc87b7cd6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 8374, "upload_time": "2018-12-05T21:57:08", "url": "https://files.pythonhosted.org/packages/3e/15/93068080bc054b5b3873c86c4162ee034dffd7a519c02ca57ffe54d78573/spcli-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "a2e31118847796de1a42303aeedc7507", "sha256": "1975b4dac6e7e93d3d0f0e39d9f5b864e81d666456d32e2f452ece0cb43369f8" }, "downloads": -1, "filename": "spcli-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a2e31118847796de1a42303aeedc7507", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 20582, "upload_time": "2018-12-06T20:20:44", "url": "https://files.pythonhosted.org/packages/4e/27/4ead9a841887a5feaf1fa7e221f97dcbe46ae13f816ee9b52966bbc381da/spcli-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aeb3b56b8c3ac9470bc4ab02a9ea188c", "sha256": "d3f681bf984f201657e5c27e0b5ab92068fb9748fd6ff2541112355f8ceda2d3" }, "downloads": -1, "filename": "spcli-1.0.1.tar.gz", "has_sig": false, "md5_digest": "aeb3b56b8c3ac9470bc4ab02a9ea188c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 8550, "upload_time": "2018-12-06T20:20:46", "url": "https://files.pythonhosted.org/packages/ff/4e/7ddd4a74613b1278c3eb50accabfda05aa53a57a44f95080289aba30dd58/spcli-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "ab8897b785f65d6ca73b99b8732b2bce", "sha256": "a7161e480dadf3e65fd3f55c3d6448f1513e9ed96faeb6c84ffec1353a232812" }, "downloads": -1, "filename": "spcli-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ab8897b785f65d6ca73b99b8732b2bce", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 20678, "upload_time": "2019-08-14T21:59:14", "url": "https://files.pythonhosted.org/packages/eb/94/a3ced010adb6efb8eb7cab3af745b26d8ea1e5dbd84bf1f638d258d236d1/spcli-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2e4570decc66942a459e7543bb6e74a8", "sha256": "088c962a7700ac972f891ba755f8eff58c038105f9f2f4360c6e747b622e98cb" }, "downloads": -1, "filename": "spcli-1.0.2.tar.gz", "has_sig": false, "md5_digest": "2e4570decc66942a459e7543bb6e74a8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 8726, "upload_time": "2019-08-14T21:59:15", "url": "https://files.pythonhosted.org/packages/0b/c3/e83875b04b2aec726fa0cfc9630e723ac09d9fab07886675c4ef02b09aa1/spcli-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "6cc30aeb3d465e80b29ce62b51b25365", "sha256": "f5907a4c84608af0c6a21e78cfdbf35adee691e83d77836325346c558f97292c" }, "downloads": -1, "filename": "spcli-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "6cc30aeb3d465e80b29ce62b51b25365", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 20671, "upload_time": "2019-10-10T09:43:07", "url": "https://files.pythonhosted.org/packages/f3/8b/b1d784746531c197a00c5c9a2b8d5e268f70af8dd95a5ac45976008badd7/spcli-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "078633866f9cb84a7130b83952c8bf93", "sha256": "81492ff05e1ad2fd356ea0861e811f762b8c3904f9286ab118d9ec99fa2b09bb" }, "downloads": -1, "filename": "spcli-1.0.3.tar.gz", "has_sig": false, "md5_digest": "078633866f9cb84a7130b83952c8bf93", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 8722, "upload_time": "2019-10-10T09:43:09", "url": "https://files.pythonhosted.org/packages/4e/19/eaa6562a79d38a115421e05d353f471a4bd5b56d82a37cb9c49c6c11380d/spcli-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6cc30aeb3d465e80b29ce62b51b25365", "sha256": "f5907a4c84608af0c6a21e78cfdbf35adee691e83d77836325346c558f97292c" }, "downloads": -1, "filename": "spcli-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "6cc30aeb3d465e80b29ce62b51b25365", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 20671, "upload_time": "2019-10-10T09:43:07", "url": "https://files.pythonhosted.org/packages/f3/8b/b1d784746531c197a00c5c9a2b8d5e268f70af8dd95a5ac45976008badd7/spcli-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "078633866f9cb84a7130b83952c8bf93", "sha256": "81492ff05e1ad2fd356ea0861e811f762b8c3904f9286ab118d9ec99fa2b09bb" }, "downloads": -1, "filename": "spcli-1.0.3.tar.gz", "has_sig": false, "md5_digest": "078633866f9cb84a7130b83952c8bf93", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 8722, "upload_time": "2019-10-10T09:43:09", "url": "https://files.pythonhosted.org/packages/4e/19/eaa6562a79d38a115421e05d353f471a4bd5b56d82a37cb9c49c6c11380d/spcli-1.0.3.tar.gz" } ] }