/ tuesdaytooling

Tuesday Tooling: Stack Overflow in the Terminal!

If you need an answer, then all you need to do is ask the question.

If you've been coding for a while or just Googling a problem, chances are that you have come across Stack Overflow by now. But what happens if you are in the date centre, terminal, or have no access to a web browser? Well you access Stack Overflow from your Terminal.

So what is it?

SearchOverflow is a terminal based tool written in Python by Airam Hernández Rocha and it enables us to search Stack Overflow while at the terminal, or in an IDE such as Visual Studio Code.

So how do I install it?

I tried to install this using the Python package, but I got this error.
Screenshot-from-2020-07-13-20-25-44
Which looks like it is missing a requirements.txt file.

Don't worry I got it installed by using Github

I installed SearchOverflow using the project's Github repository.
Clone the repository

git clone https://github.com/airamhr9/SearchOverflow.git

Navigate to the directory.

cd SearchOverflow

Install SearchOverflow.

sudo python3 setup.py install

But I don't know anything about Github, how can I install SearchOverflow?

Fear not, you can download the ZIP file from here. and extract the contents to a folder, and from there following the final step in the install.

Animated-GIF-downsized

Hi reader!

I never put my blog posts behind paywall or pop ups because quite frankly that is annoying and prevents anyone from accessing the content. I will always keep my blog content free of charge. But I do ask that if you are able and willing, that you buy me a "coffee" as it helps me to pay for hosting this blog, and to buy stuff to hack from Poundshops / Dollar Stores / Aliexpress which are used in free projects and reviews on this blog. It is You dear reader who make this possible, and I am immensely grateful for your support.
Thanks!

So how do I use it?

SearchOverflow can be used in the Terminal or via an IDE such as Visual Studio Code. SearchOverflow works in two ways. We can call the command with no question sflow. And then ask a question, press ENTER and watch the results pour in.
ezgif.com-optimize--2--1
We can also ask the question as we call the command sflow ["Your question goes here"] to quickly show a list of responses.
python

So does it work in an IDE?

sflow
I tried it in Visual Studio Code and yup it works!

Happy Hacking!