# <img src='./gui/all/ddg.png' card_color='#de5833' width='50' height='50' style='vertical-align:bottom'/> DuckDuckGo
Use DuckDuckGo to answer questions
![](./gui/all/logo.png)
## About
Uses the [DuckDuckGo API](https://duckduckgo.com/api) to provide information.
## Examples
* "when was stephen hawking born"
* "ask the duck about the big bang"
* "tell me more"
* "who is elon musk"
* "continue"
* "tell me more"
### Adding more `infobox` intents
internal `.intent` files can be added to allow parsing infoboxes returned by duckduckgo
first print the target infobox to inspect the returned results
```python
from skill_ovos_ddg import DuckDuckGoSolver
d = DuckDuckGoSolver()
info = d.get_infobox("Stephen Hawking")[0]
print(info)
# {'age at death': '76 years',
# 'born': {'after': 0,
# 'before': 0,
# 'calendarmodel': 'http://www.wikidata.org/entity/Q1985727',
# 'precision': 11,
# 'time': '+1942-01-08T00:00:00Z',
# 'timezone': 0},
# 'children': '3, including Lucy',
# 'died': {'after': 0,
# 'before': 0,
# 'calendarmodel': 'http://www.wikidata.org/entity/Q1985727',
# 'precision': 11,
# 'time': '+2018-03-14T00:00:00Z',
# 'timezone': 0},
# 'education': 'University College, Oxford (BA), Trinity Hall, Cambridge (PhD)',
# 'facebook profile': 'stephenhawking',
# 'fields': 'General relativity, quantum gravity',
# 'imdb id': 'nm0370071',
# 'instance of': {'entity-type': 'item', 'id': 'Q5', 'numeric-id': 5},
# 'institutions': 'University of Cambridge, California Institute of Technology, '
# 'Perimeter Institute for Theoretical Physics',
# 'official website': 'https://hawking.org.uk',
# 'other academic advisors': 'Robert Berman',
# 'resting place': 'Westminster Abbey',
# 'rotten tomatoes id': 'celebrity/stephen_hawking',
# 'thesis': 'Properties of Expanding Universes (1966)',
# 'wikidata aliases': ['Stephen Hawking',
# 'Hawking',
# 'Stephen William Hawking',
# 'S. W. Hawking',
# 'stephen'],
# 'wikidata description': 'British theoretical physicist, cosmologist and '
# 'author (1942–2018)',
# 'wikidata id': 'Q17714',
# 'wikidata label': 'Stephen Hawking',
# 'youtube channel': 'UCPyd4mR0p8zHd8Z0HvHc0fw'}
```
under `DuckDuckGoSolver.register_from_file` add your new `xxx.intent` file, where `xxx` needs to be a key present in the infobox, underscores are replaced with whitespaces
then that infobox value will be mapped to that intent file
## Category
**Information**
## Tags
#duckduckgo
#query
#search-engine
#searchengine
Raw data
{
"_id": null,
"home_page": "https://github.com/OpenVoiceOS/skill-ovos-ddg",
"name": "skill-ddg",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "ovos skill plugin",
"author": "JarbasAi",
"author_email": "jarbasai@mailfence.com",
"download_url": "https://files.pythonhosted.org/packages/e0/ed/3a2f5de4947ca8b65eabb8c26d3e020b8df5e453fdaf2c0f8917caccf670/skill-ddg-0.1.15.tar.gz",
"platform": null,
"description": "# <img src='./gui/all/ddg.png' card_color='#de5833' width='50' height='50' style='vertical-align:bottom'/> DuckDuckGo\nUse DuckDuckGo to answer questions\n\n![](./gui/all/logo.png)\n\n\n## About\n\nUses the [DuckDuckGo API](https://duckduckgo.com/api) to provide information. \n\n## Examples\n\n* \"when was stephen hawking born\"\n* \"ask the duck about the big bang\"\n* \"tell me more\"\n* \"who is elon musk\"\n* \"continue\"\n* \"tell me more\"\n\n### Adding more `infobox` intents\n\ninternal `.intent` files can be added to allow parsing infoboxes returned by duckduckgo\n\nfirst print the target infobox to inspect the returned results\n```python\nfrom skill_ovos_ddg import DuckDuckGoSolver\nd = DuckDuckGoSolver()\ninfo = d.get_infobox(\"Stephen Hawking\")[0]\nprint(info)\n# {'age at death': '76 years',\n# 'born': {'after': 0,\n# 'before': 0,\n# 'calendarmodel': 'http://www.wikidata.org/entity/Q1985727',\n# 'precision': 11,\n# 'time': '+1942-01-08T00:00:00Z',\n# 'timezone': 0},\n# 'children': '3, including Lucy',\n# 'died': {'after': 0,\n# 'before': 0,\n# 'calendarmodel': 'http://www.wikidata.org/entity/Q1985727',\n# 'precision': 11,\n# 'time': '+2018-03-14T00:00:00Z',\n# 'timezone': 0},\n# 'education': 'University College, Oxford (BA), Trinity Hall, Cambridge (PhD)',\n# 'facebook profile': 'stephenhawking',\n# 'fields': 'General relativity, quantum gravity',\n# 'imdb id': 'nm0370071',\n# 'instance of': {'entity-type': 'item', 'id': 'Q5', 'numeric-id': 5},\n# 'institutions': 'University of Cambridge, California Institute of Technology, '\n# 'Perimeter Institute for Theoretical Physics',\n# 'official website': 'https://hawking.org.uk',\n# 'other academic advisors': 'Robert Berman',\n# 'resting place': 'Westminster Abbey',\n# 'rotten tomatoes id': 'celebrity/stephen_hawking',\n# 'thesis': 'Properties of Expanding Universes (1966)',\n# 'wikidata aliases': ['Stephen Hawking',\n# 'Hawking',\n# 'Stephen William Hawking',\n# 'S. W. Hawking',\n# 'stephen'],\n# 'wikidata description': 'British theoretical physicist, cosmologist and '\n# 'author (1942\u20132018)',\n# 'wikidata id': 'Q17714',\n# 'wikidata label': 'Stephen Hawking',\n# 'youtube channel': 'UCPyd4mR0p8zHd8Z0HvHc0fw'}\n```\nunder `DuckDuckGoSolver.register_from_file` add your new `xxx.intent` file, where `xxx` needs to be a key present in the infobox, underscores are replaced with whitespaces\n\nthen that infobox value will be mapped to that intent file\n\n\n## Category\n**Information**\n\n## Tags\n#duckduckgo\n#query\n#search-engine\n#searchengine\n\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "ovos duck duck go skill plugin",
"version": "0.1.15",
"project_urls": {
"Homepage": "https://github.com/OpenVoiceOS/skill-ovos-ddg"
},
"split_keywords": [
"ovos",
"skill",
"plugin"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "17630e6ba8720fe8d3b5db6e9216dee4a469a14ba0e9dd2ecf830ed5fb41dc02",
"md5": "3519f44febf6dfc281db8103f1509e0b",
"sha256": "03c95e17206c4ea623b7d4c7987e17bfe63403be22b9d232b4d8198113373ccc"
},
"downloads": -1,
"filename": "skill_ddg-0.1.15-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3519f44febf6dfc281db8103f1509e0b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 109219,
"upload_time": "2025-01-04T21:30:20",
"upload_time_iso_8601": "2025-01-04T21:30:20.265194Z",
"url": "https://files.pythonhosted.org/packages/17/63/0e6ba8720fe8d3b5db6e9216dee4a469a14ba0e9dd2ecf830ed5fb41dc02/skill_ddg-0.1.15-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e0ed3a2f5de4947ca8b65eabb8c26d3e020b8df5e453fdaf2c0f8917caccf670",
"md5": "593965c22e145c3f286b160f9164c146",
"sha256": "91b18122960e7decdd457fcd138f3485d1f7875bac59808554e629d3facf7026"
},
"downloads": -1,
"filename": "skill-ddg-0.1.15.tar.gz",
"has_sig": false,
"md5_digest": "593965c22e145c3f286b160f9164c146",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 68514,
"upload_time": "2025-01-04T21:30:22",
"upload_time_iso_8601": "2025-01-04T21:30:22.586494Z",
"url": "https://files.pythonhosted.org/packages/e0/ed/3a2f5de4947ca8b65eabb8c26d3e020b8df5e453fdaf2c0f8917caccf670/skill-ddg-0.1.15.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-04 21:30:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "OpenVoiceOS",
"github_project": "skill-ovos-ddg",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": []
},
{
"name": "ovos-utils",
"specs": [
[
"<",
"1.0.0"
],
[
">=",
"0.0.35"
]
]
},
{
"name": "ovos_workshop",
"specs": [
[
">=",
"3.3.2"
],
[
"<",
"4.0.0"
]
]
},
{
"name": "ovos-translate-server-plugin",
"specs": []
},
{
"name": "ovos-config",
"specs": [
[
"<",
"1.0.0"
],
[
">=",
"0.0.11"
]
]
},
{
"name": "ovos-plugin-manager",
"specs": [
[
"<",
"1.0.0"
],
[
">=",
"0.0.26"
]
]
},
{
"name": "ovos-date-parser",
"specs": []
}
],
"lcname": "skill-ddg"
}