Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvations/rubberduck
Yet another Python API to DuckDuckGo Instant Answer API.
https://github.com/alvations/rubberduck
api duckduckgo python
Last synced: 23 days ago
JSON representation
Yet another Python API to DuckDuckGo Instant Answer API.
- Host: GitHub
- URL: https://github.com/alvations/rubberduck
- Owner: alvations
- License: mit
- Created: 2017-02-03T05:40:43.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T07:12:14.000Z (almost 7 years ago)
- Last Synced: 2024-11-10T06:43:01.022Z (about 1 month ago)
- Topics: api, duckduckgo, python
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Rubberduck
====Yet another Python API to DuckDuckGo Instant Answer API.
Install
====```
pip install -U rubberduck
```Usage / Options
====```
Usage:
rbd.py --help
rbd.py QUERY...
rbd.py [--disambiguate|--related|--json] [--url|--launch] [--save ] QUERY...
rbd.py [--url|--launch] [--save ] [--bang ] QUERY...Option:
-h --help Show this screen.
-m --disambiguate Returns the disambiguated results.
-r --related Returns the related results.
-u --url Return the result URL.
-l --launch Open the result URL in a new browswer tab.
-s --save Saves the JSON/HTML result to file.
-b --bang Returns the redirected page from DuckDuckGo !bang, see https://duckduckgo.com/bang.
-j --json Return the JSON responses from DuckDuckGo Instant Answer API.
```OS Specific
====**Linux**:
```
git clone https://github.com/alvations/rubberduck.git
cd rubberduck/
python rbd.py rubberduck # Prints: Rubberduck is a fictional character in the DC Comics universe, an anthropomorphic duck. ...
python rbd.py rubber duck # Prints: Your query was ambiguous, try the -m option or please be more specific ...
python rbd.py -m rubber duck # Prints: A rubber duck is a toy shaped like a stylized duck, generally yellow with a flat base. ...
python rbd.py -u rubber duck # Prints: https://en.wikipedia.org/wiki/Rubber_duck_(disambiguation)
python rbd.py -l rubber duck # Launch a new tab in your browser to https://en.wikipedia.org/wiki/Rubber_duck_(disambiguation)
python rbd.py -l -m rubber duck # Launch a new tabe in your browser to https://en.wikipedia.org/wiki/Rubber_duck
python rbd.py what is the day today? # Prints today's date.
python rbd.py what is the meaning of life? # Prints: The meaning of life ... pertains to the significance of living or existence in general. ...
python rbd.py -u -b wtionary rubberduck # Prints: https://en.wiktionary.org/wiki/rubber_duck
python rbd.py -l -b wtionary rubberduck # Launch a new tabe to https://en.wiktionary.org/wiki/rubber_duck
python rbd.py -l -b google what is the answer to life the universe and everything # Launch a new tab to https://encrypted.google.com/search?hl=en&q=what%20is%20the%20answer%20to%20life%20the%20universe%20and%20everything
```**Mac OSX**:
```
rbd rubberduck # Prints: Rubberduck is a fictional character in the DC Comics universe, an anthropomorphic duck. ...
rbd rubber duck # Prints: Your query was ambiguous, try the -m option or please be more specific ...
rbd -m rubber duck # Prints: A rubber duck is a toy shaped like a stylized duck, generally yellow with a flat base. ...
rbd -u rubber duck # Prints: https://en.wikipedia.org/wiki/Rubber_duck_(disambiguation)
rbd -l rubber duck # Launch a new tab in your browser to https://en.wikipedia.org/wiki/Rubber_duck_(disambiguation)
rbd -l -m rubber duck # Launch a new tabe in your browser to https://en.wikipedia.org/wiki/Rubber_duck
rbd what is the day today? # Prints today's date.
rbd what is the meaning of life? # Prints: The meaning of life ... pertains to the significance of living or existence in general. ...
rbd -u -b wtionary rubberduck # Prints: https://en.wiktionary.org/wiki/rubber_duck
rbd -l -b wtionary rubberduck # Launch a new tabe to https://en.wiktionary.org/wiki/rubber_duck
rbd -l -b google what is the answer to life the universe and everything # Launch a new tab to https://encrypted.google.com/search?hl=en&q=what%20is%20the%20answer%20to%20life%20the%20universe%20and%20everything
```