SoCLIStack Overflow command line written in python. Using SoCLI you can search and browse Stack Overflow without leaving the terminal. Just use the socli command: InstallationSupported platforms
Requirements
For LinuxInstall python and just use pip command to install socli:
For WindowsDownload and install Python. Don't forget to check the option "Add to path". Open a command prompt with administrative privileges and use pip command to install socli:
Use easy_install if your python path has a space in it. Read more: "Failed to create process":
For Mac (via homebrew)Install python and socli:
UpdatingUse the command below to update your existing version of socli to the newest version so that you won't miss any features:
UsageQuick SearchUse the socli command followed by the search query:
The above command will search for the query "for loop in python syntax" and displays the first most voted question in Stack Overflow with its most voted answer. Pretty quick, right? Interactive SearchYou can search Stack Overflow interactively by using the command below:
This will display a list of questions from Stack Overflow for the query "html error 404" and it will allow you to choose any of the questions you like interactively. When you choose a question, it will display the complete description of the chosen question with its most voted answer. You can also browse through the other answers to that question using the up and down arrow keys as well as go back to the list of questions using the left arrow key. Manual SearchThis will allow you to specify a requested question number for your query. For example, consider the following command:
This command searches for "javascript prototype function" in Stack Overflow and displays the second question that contains it. Topic-Based SearchStack Overflow supports topic by using tags. socli allows you to query Stack Overflow based on specific tags. Just specify the tag via the following command:
You can also specify multiple tags, Just separate them with a comma:
See the complete list of tags here. User Profile BrowsingJust use the command below to set your [user ID](https://github.com/beerzyp/socli/ http://meta.stackexchange.com/a/111130) in socli. When you execute the command next time, it will automaticially fetch the data.
if your are an extensive user of StackOverflow, socli allows you to set your own API key to overcome the StackOverflow API Limitations. Just use the command below:
You can get an API Key here by registering as a new app. Please don't use SoCLI as app name. Posting a New QuestionIf you can't find an answer for your question in Stack Overflow, socli allows you to create a new question via the web browser. Just type the command below and socli will open the new question page of Stack Overflow in the web browser for you:
Syntax:socli has the following syntax
Arguments (optional)
QueryThis term refers to what you're searching for in Stack Overflow. FeaturesThese are the amazing features of SoCLI:
To DoCommand line interface for:
Please check out the list of issues. ContributingIf you are willing to contribute to SoCLI project, you are awesome! Just follow the steps below:
ContributorsSpecial thanks to these superheroes:
BugsIf you are experiencing any bugs, don’t forget to open a new issue. Error SolvingIf you encounter "AttributeError: 'module' object has no attribute 'SSL ST INIT'
Thanks
SponsorsSponsor SoCLI on Collaborizm or on Open Collective:
Liked it?Hope you liked this project, don't forget to give it a star :star: |