Stack Overflowis one of the well-known and prominent online community website for Programmers to learn and share their knowledge with millions of users around the world. Also, It is my preferred website when it comes to search, discoverprogramming related stuffs, and questions. If you are like me, I have good news for you. Now, you can search and browse Stack Overflow website without leaving your Terminal. A guy named Gautam krishna has created a commandline utility called “SoCLI” to search and browse Stack Overflow site from your Terminal. It will be quite useful when you want to browse Stack Overflow website from a System that has no GUI mode. Using SoCLI, you can post to Stack overflow, upvote and comment an answer. SoCLI is a cross-platform utility, so It will work on GNU/linux, Microsoft windows, and Mac OS X.
Download Free Guide: “Getting Started With Arduino: A Beginner’s Guide”
Concerning about the features of CLI, we can list the following:
Search and browse Stack Overflow interactively Search a specific most voted question with its answer manually Search using specific question with single or multiple tags Open a page in the default web browser Creating new questions via the web browser Coloured interface Question stats viewIn this brief tutorial, I will walk you through how to browse Stack Overflow using SoCLI tool from Commandline, Follow me!
SoCLI Search and browse Stack Overflow Website From CommandlineSoCLI is a Stack Overflow commandline client written in python programming language. In order to install it, you need to install python and pip package manager. Pip is the package manager to install applications written using Python.
First, let us install pip.
On Arch Linux and its derivatives:
sudo pacman -S python-pipOn Debian, Ubuntu, Linux Mint:
sudo apt-get install python-pipOn RHEL, Fedora, CentOS:
sudo yum install python-pipOr,
sudo dnf install python-pipOn SUSE/openSUSE:
sudo zypper install python-pipOnce pip installed, run the following command to install SoCLI. The following command is same for all Linux distributions!
sudo pip install socli Sample output: The directory '/home/sk/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.The directory '/home/sk/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting socli
Downloading socli-2.9.tar.gz
Collecting BeautifulSoup4 (from socli)
Downloading beautifulsoup4-4.5.3-py2-none-any.whl (85kB)
100% |%