Originally published April 11, 2018 @ 4:25 pm
ddgr python script is a command line interface for Duck Duck Go – a privacy-oriented search engine that, unlike Google, will not give away your data to the likes of Cambridge Analytica. In the past year Duck Duck Go has grown and matured and now is a serious player in the Web search field.The
ddgr tool uses Python 3, so if, like myself, you dislike SystemD and still clinging to CentOS 6, you would need to get Python 3 installed on your machine in a way that’s not gonna mess with the native version of Python. Here’s the process that worked for me:
cd /usr/src wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz tar xzf Python-3.6.4.tgz cd Python-3.6.4 ./configure --enable-optimizations make altinstall rm /usr/src/Python-3.6.4.tgz ln -s /usr/local/bin/python3.6 /usr/bin/python3
Now all you need is to clone the
ddgrrepo from GitHub and copy the executable to an appropriate location:
sudo su - cd ~ git clone https://github.com/jarun/ddgr.git cd ddgr /bin/cp -p ddgr /usr/bin/ddgr chmod 755 /usr/bin/ddgr
You can get the online help for the utility like so:
A couple of basic examples:
ddgr --noprompt --num 20 --expand "ddgr" ddgr --noprompt --num 25 --expand "Donald John Trump" | \ grep -iP "b[oi]r[tn](h)?|d(\.)?o(\.)?b(\.)?"
Experienced Unix/Linux System Administrator with 20-year background in Systems Analysis, Problem Resolution and Engineering Application Support in a large distributed Unix and Windows server environment. Strong problem determination skills. Good knowledge of networking, remote diagnostic techniques, firewalls and network security. Extensive experience with engineering application and database servers, high-availability systems, high-performance computing clusters, and process automation.