jarun / ddgr

:duck: DuckDuckGo from the terminal
GNU General Public License v3.0
2.92k stars 139 forks source link

How to use ddgr as a Python module inside other scripts #118

Closed dit7ya closed 4 years ago

dit7ya commented 4 years ago

I am wondering if there is some way to easily use this inside other Python scripts without using something like subprocess. Essentially I want to access the return value of ddgr --json inside other scripts.

jarun commented 4 years ago

I guess you'll have to modify ddgr to be imported as a library that way. However, the current implementation is not done that way.