{ "info": { "author": "Amano Team", "author_email": "contact@amanoteam.ml", "bugtrack_url": null, "classifiers": [], "description": "
\n \"DuckPy\"\n
A simple Python module that searches on DuckDuckGo.
\n\n\n\n## Installation:\n\nDuckpy can be installed using pip from PyPI or from GitHub\n\n#### via PyPI using pip:\n\n```bash\npip install -U duckpy\n```\n\n#### via GitHub using pip+git:\n\n```bash\npip install -U git+https://github.com/AmanoTeam/duckpy\n```\n\n## Usage:\n\nTo use duckpy is easy, let's see some examples:\n\n### First example (normal version):\n\n```python\nimport duckpy\n\nclient = duckpy.Client()\n\nsearch = client.search(\"Amano Team duckpy\")\n\n# Prints first result title\nprint(search[0][\"title\"])\n\n# Prints first result URL\nprint(search[0][\"url\"])\n\n# Prints first result description\nprint(search[0][\"description\"])\n```\n\nThe result:\n\n```\nGitHub - AmanoTeam/duckpy: A simple Python module that ...\nhttps://github.com/AmanoTeam/duckpy\nA simple Python module that searches on DuckDuckGo - AmanoTeam/duckpy\n```\n\n### First example (asyncio version):\n\n```python\nimport asyncio\nimport duckpy.aio\n\nclient = duckpy.aio.Client()\n\nasync def get_results():\n search = await client.search(\"Amano Team duckpy\")\n\n # Prints first result title\n print(search[0][\"title\"])\n\n # Prints first result URL\n print(search[0][\"url\"])\n\n # Prints first result description\n print(search[0][\"description\"])\n\n\nloop = asyncio.get_event_loop()\nloop.run_until_complete(get_results())\n```\n\nThe result:\n\n```\nGitHub - AmanoTeam/duckpy: A simple Python module that ...\nhttps://github.com/AmanoTeam/duckpy\nA simple Python module that searches on DuckDuckGo - AmanoTeam/duckpy\n```\n\n\n# Advanced usage:\n\nYou can also set up proxies and/or enable or disable random User-Agents depending on your needs.\n\n## Setting up proxies:\n\nYou can pass a list with proxies on the Client object, then duckpy will use these proxies to make requests.\n\n#### Example:\n\n```python\nimport duckpy\n\nclient = duckpy.Client(proxies=['http://123.45.67.89:80', 'https://123.45.67.89:443'])\n```\n\nIf you pass more than one proxy, them will be randomly chosen every time you use the .search() method.", "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/AmanoTeam/duckpy", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "duckpy", "package_url": "https://pypi.org/project/duckpy/", "platform": "", "project_url": "https://pypi.org/project/duckpy/", "project_urls": { "Homepage": "https://github.com/AmanoTeam/duckpy" }, "release_url": "https://pypi.org/project/duckpy/2.0.0/", "requires_dist": null, "requires_python": "", "summary": "A simple module for searching on DuckDuckGo", "version": "2.0.0" }, "last_serial": 5428946, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "4ac054a9010f945a782c76f7e6f7f9ff", "sha256": "b369a2a1936516e3e6f34a2d5f23c3ebc787e672a201d5646d4e74341ed287f0" }, "downloads": -1, "filename": "duckpy-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4ac054a9010f945a782c76f7e6f7f9ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 740, "upload_time": "2018-11-08T19:32:55", "url": "https://files.pythonhosted.org/packages/d6/ee/19c05dc7da295b394207dc31d42712a8d3946346f2126b24d9f2895f4eac/duckpy-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "613c752fea0655703a95e3650598a65b", "sha256": "1ee2eba98633be81551943ca20dcec6508ee684eb8845de7960ad79b1745da62" }, "downloads": -1, "filename": "duckpy-1.0.1.tar.gz", "has_sig": false, "md5_digest": "613c752fea0655703a95e3650598a65b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1177, "upload_time": "2018-11-08T20:31:32", "url": "https://files.pythonhosted.org/packages/5b/94/5e5a6232d844afcef38a8e10f2102f7dee32220b7953e9d9d63776ce5a05/duckpy-1.0.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "0f801e01a800dd301aa4e2f4b1f63777", "sha256": "533efbdddff83b9a51197f12b805cb3f83dc76fa3bd4e1e693bd6da5d0a02c91" }, "downloads": -1, "filename": "duckpy-1.2.0.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "0f801e01a800dd301aa4e2f4b1f63777", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2194, "upload_time": "2019-02-06T04:28:25", "url": "https://files.pythonhosted.org/packages/8d/80/f54b9e17e1d8c82e9cc1906b7c09a5e109012a3f91a2caf8114d2f6850f7/duckpy-1.2.0.linux-x86_64.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "4152c1bc04513b0cd3d340c224c9599f", "sha256": "90b82f4f37aeb25f4704ece7ab41ad2ebd243a34eb799d6f9639b4a9d9c61656" }, "downloads": -1, "filename": "duckpy-1.2.1.tar.gz", "has_sig": false, "md5_digest": "4152c1bc04513b0cd3d340c224c9599f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1861, "upload_time": "2019-02-06T04:35:56", "url": "https://files.pythonhosted.org/packages/b1/4a/558094ef54ea31f6a649e280fa142bd02e9ae0d36cf19ff0c474e4264f50/duckpy-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "441821dd37313ceab8b52f7313771d5c", "sha256": "bf9ad5648f8f2c5be22df544289a5c3d5631b425905109a2d54eb8164246366a" }, "downloads": -1, "filename": "duckpy-1.2.2.tar.gz", "has_sig": false, "md5_digest": "441821dd37313ceab8b52f7313771d5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1911, "upload_time": "2019-02-06T04:55:01", "url": "https://files.pythonhosted.org/packages/f3/1a/c5f01ac47e48d001a2fdc90f83d14088a32eebeb05213676e011bf70a70f/duckpy-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "c15885d8b1e8186ee995a5120cad560b", "sha256": "f6ee7e1bb7c082582c4e5f2265bf4b6b26e03a6540deb1deaf21cde44ca10553" }, "downloads": -1, "filename": "duckpy-1.2.3.tar.gz", "has_sig": false, "md5_digest": "c15885d8b1e8186ee995a5120cad560b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1914, "upload_time": "2019-06-20T02:36:19", "url": "https://files.pythonhosted.org/packages/1f/4e/d5eb9dcb6c76f3ede9dd23e5db3d25282fb2fd9307d3f89ab01266627a05/duckpy-1.2.3.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "e538469bbeac80df6c5cbbc9a76f9b33", "sha256": "f0a41f914d8eb9c0b99c4bdf34ba171303ff6e2b4cbe60b12c3c4a37e0f4c700" }, "downloads": -1, "filename": "duckpy-2.0.0.tar.gz", "has_sig": false, "md5_digest": "e538469bbeac80df6c5cbbc9a76f9b33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2682, "upload_time": "2019-06-21T04:44:02", "url": "https://files.pythonhosted.org/packages/56/ef/43f909e83b98e0d55a59190e0809f7054e48563c2a82923cd97bdf4a3ece/duckpy-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e538469bbeac80df6c5cbbc9a76f9b33", "sha256": "f0a41f914d8eb9c0b99c4bdf34ba171303ff6e2b4cbe60b12c3c4a37e0f4c700" }, "downloads": -1, "filename": "duckpy-2.0.0.tar.gz", "has_sig": false, "md5_digest": "e538469bbeac80df6c5cbbc9a76f9b33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2682, "upload_time": "2019-06-21T04:44:02", "url": "https://files.pythonhosted.org/packages/56/ef/43f909e83b98e0d55a59190e0809f7054e48563c2a82923cd97bdf4a3ece/duckpy-2.0.0.tar.gz" } ] }