{"id":21081763,"url":"https://github.com/openvoiceos/ovos-skill-ddg","last_synced_at":"2025-05-16T09:31:03.687Z","repository":{"id":39065468,"uuid":"319859955","full_name":"OpenVoiceOS/ovos-skill-ddg","owner":"OpenVoiceOS","description":"duck duck go skill","archived":false,"fork":false,"pushed_at":"2025-05-15T16:54:44.000Z","size":353,"stargazers_count":3,"open_issues_count":3,"forks_count":4,"subscribers_count":6,"default_branch":"dev","last_synced_at":"2025-05-15T16:56:22.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenVoiceOS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-09T06:10:40.000Z","updated_at":"2025-05-15T16:54:48.000Z","dependencies_parsed_at":"2022-09-13T13:41:46.685Z","dependency_job_id":"66279791-1309-4122-a4a2-5c74bef63cb8","html_url":"https://github.com/OpenVoiceOS/ovos-skill-ddg","commit_stats":{"total_commits":34,"total_committers":10,"mean_commits":3.4,"dds":0.6764705882352942,"last_synced_commit":"0469d6f5458ce99c29a27ebb21e8d4c231baf96b"},"previous_names":["openvoiceos/ovos-skill-ddg","openvoiceos/skill-ovos-ddg"],"tags_count":62,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenVoiceOS%2Fovos-skill-ddg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenVoiceOS%2Fovos-skill-ddg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenVoiceOS%2Fovos-skill-ddg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenVoiceOS%2Fovos-skill-ddg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenVoiceOS","download_url":"https://codeload.github.com/OpenVoiceOS/ovos-skill-ddg/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254504729,"owners_count":22082077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T20:10:51.617Z","updated_at":"2025-05-16T09:31:02.990Z","avatar_url":"https://github.com/OpenVoiceOS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src='./gui/all/ddg.png' card_color='#de5833' width='50' height='50' style='vertical-align:bottom'/\u003e 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–2018)',\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenvoiceos%2Fovos-skill-ddg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenvoiceos%2Fovos-skill-ddg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenvoiceos%2Fovos-skill-ddg/lists"}