A Python3 library for DuckDuckGo instant answer API and full search via browser.
Project description
A Python3 library for searching using the DuckDuckGo API and full search via browser.
Copyright (c) 2016 Abhishek Poonia <abhishekpoonia22@gmail.com>
Released under GNU AFFERO GENERAL PUBLIC LICENSE, see LICENSE for details.
This Python3 version uses the instant answer API of DuckDuckGo.
Usage:
>>> import DuckDuckGo
>>> q = DuckDuckGo.search('Modi')
>>> q.type 'Dis ambiguation'
>>> q.abstract.abstract q.abstract.abstract q.abstract.abstract_text q.abstract.abstract_source q.abstract.abstract_url
>>> q.abstract.abstract_text ''
>>> q.abstract.heading 'Modi'
>>> q.display(limit = 1) https://duckduckgo.com/Narendra_Modi Narendra Modi The 14th and current Prime Minister of India, in office since 26 May 2014. --------------------------------------------------
>>> q.abstract.abstract_url 'https://en.wikipedia.org/wiki/Modi'
>>> q.display() https://duckduckgo.com/Narendra_Modi Narendra Modi The 14th and current Prime Minister of India, in office since 26 May 2014. -------------------------------------------------- https://duckduckgo.com/Modi_Group Modi Group An Indian Business conglomerate based in New Delhi, India. -------------------------------------------------- https://duckduckgo.com/monochorionic_twins Monochorionic-Diamniotic Monochorionic twins are monozygotic twins that share the same placenta. -------------------------------------------------- https://duckduckgo.com/M%C3%B3%C3%B0i_and_Magni Móði The sons of Thor. Their names mean "Brave" and "Strong," respectively. -------------------------------------------------- https://duckduckgo.com/modi_alphabet Modi script A script used to write the Marathi language, which is the primary language spoken in the state of... -------------------------------------------------- >>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file DuckDuckGo Python3 Library-1.0.tar.gz.
File metadata
- Download URL: DuckDuckGo Python3 Library-1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1905f400bc710185a094400fda62a7623e3112987cd4ffbd3b65791c0f0a9ed
|
|
| MD5 |
7304ad30f7bbbcf676fabe13bfe85170
|
|
| BLAKE2b-256 |
cf02e329d8eaab0fdb54eceb18d13af5ae663886bce467fbd7939c65d4e47b67
|