1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
|
%global _empty_manifest_terminate_build 0
Name: python-socli
Version: 7.3
Release: 1
Summary: Stack overflow command line interface. SoCLI allows you to search and browse stack overflow from the terminal.
License: BSD
URL: https://www.github.com/gautamkrishnar/socli
Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ed/c9/8af1f627155f2cb8af88d16344173dab0053da992a6e6feaead4283a67da/socli-7.3.tar.gz
BuildArch: noarch
Requires: python3-BeautifulSoup4
Requires: python3-requests
Requires: python3-colorama
Requires: python3-Py-stackExchange
Requires: python3-sentry-sdk
Requires: python3-urwid
Requires: python3-argcomplete
%description
# SoCLI [ ](https://pypi.org/project/socli/) [](https://travis-ci.com/gautamkrishnar/socli) [](https://gitter.im/socli-community/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Stack Overflow command line written in python. Using SoCLI you can search and browse Stack Overflow without leaving the terminal. Just use the **socli** command:

### Installation
##### Supported platforms
* Linux
* Windows
* Mac
##### Requirements
* Python 3.5 or higher
##### For Linux
Install **python** and just use **pip** command to install **socli**:
```bash
sudo apt-get install python3 python3-pip
pip install socli
```
##### For Windows
[Download and install Python](https://www.python.org/downloads/). Don't forget to check the option "Add to path".
Open a command prompt with administrative privileges and use **pip** command to install **socli**:
```bash
pip install socli
```
Use **easy_install** if your python path has a space in it. [Read more: "Failed to create process"](https://github.com/gautamkrishnar/socli/issues/6):
```
easy_install socli
```
##### For Mac/Linux (via [homebrew](https://brew.sh/))
Install **socli**:
```bash
brew tap gautamkrishnar/socli
brew install socli
```
##### Enabling the shell autocompletion
If you installed socli via pyPi you may need to enable the shell autocompletion. Add the following to your `.bashrc` file to enable it:
```bash
socli --register
```
### Updating
Use the command below to update your existing version of **socli** to the newest version so that you won't miss any features:
```bash
pip install --upgrade socli
```
If you installed via homebrew:
```bash
brew upgrade socli
```
### Usage
##### Quick Search
Use the **socli** command followed by the search query:
```bash
socli for loop in python syntax
```
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 Search
You can search Stack Overflow interactively by using the command below:
```sh
socli -iq html error 404
```
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 Search
This will allow you to specify a requested question number for your query. For example, consider the following command:
```sh
socli -r 2 -q javascript prototype function
```
This command searches for "*javascript prototype function*" in Stack Overflow and displays the second question that contains it.
##### Topic-Based Search
Stack 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:
```sh
socli -t javascript -q window.open
```
You can also specify multiple tags, Just separate them with a comma:
```sh
socli -t javascript,node.js -q window.open
```
See the complete list of tags [here](http://stackoverflow.com/tags).
##### User Profile Browsing
Just use the command below to set your [user ID]( http://meta.stackexchange.com/a/111130) in socli. When you execute the command next time, it will automatically fetch the data.
```sh
socli -u
```
if your are an extensive user of StackOverflow, **socli** allows you to set your own API key to overcome the [StackOverflow API Limitations](http://stackapps.com/a/3057/41332). Just use the command below:
```sh
socli --api
```
You can get an API Key [here](http://stackapps.com/apps/oauth/register) by registering as a new app. Please don't use SoCLI as app name.
##### Posting a New Question
If 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:
```sh
socli -n
```
##### Opening a url directly
If you have the url of the Stack Overflow post then you can pass it using `--open-url` or `-o`.
For example
``` socli --open-url https://stackoverflow.com/questions/20639180/explanation-of-how-nested-list-comprehension-works```
### Syntax:
**socli** has the following syntax
```
Usage: socli [ Arguments] < Search Query >
```
###### Arguments (optional)
| Short | Long | Description | Example |
|--------|--------|--------|--------|
| -q | --query | Used to specify the query when arguments are used. A query value must be passed to it. If it is used alone (socli -q query) then it will display the same result as **socli query**. | **socli -q query** |
| -i | --interactive | Used to search interactively. It doesn't take any values. It must be followed by a -q or --query after it. | **socli -i -q query** |
| -r | --res | Used for manual search. It takes the question number as the argument and it must be followed by a -q or --query after it. | **socli -r 4 -q query** |
| -t | --tag | Specifies the tag to search for the query on Stack Overflow. It must be followed by a -q or --query after it. | **socli -t js -q query** |
| -n | --new | Opens the web browser to create a new question on Stack Overflow. | **socli --new** |
| -u | --user | Displays the user profile informations. If no argument is given, it will display your profile. | **socli -u 22656** |
| -a | --api | Sets a custom API key. | **socli --api** |
| -d | --del | Deletes the configuration file generated by socli -u manually. | **socli -d** |
| -s | --sosearch | SoCLI uses Google search by default to search for questions. To override this and use stackoverflow's default search instead. | **socli -s -q for loop python** |
| -h | --help | Displays the help text. | **socli --help** |
| -o | --open-url | Displays the given url in socli if possible if not opens in browser. | **socli -o https://stackoverflow.com/questions/20639180/explanation-of-how-nested-list-comprehension-works** |
| -j | --json-output | Gives output to stdout as json | **socli -jq for loop python** |
| -g | --register | Registers socli's shell autocompletion | socli -g |
| -v | --version | Displays the version of socli. | **socli -v** |
###### Query
This term refers to what you're searching for in Stack Overflow.
### Features
These are the amazing features of SoCLI:
* Manual Search
* Interactively browse Stack Overflow using the interactive mode
* Coloured interface
* Question stats view
* Tag support
* Can open the page in a browser
* Can view user profiles
* Can create a new question via the web browser
* Can open a Stack Overflow page on the terminal directly from a url
### To Do
Command line interface for:
- [ ] Stack Overflow authentication
- [ ] Posting to Stack Overflow
- [ ] Upvote answer
- [ ] Comment on an answer
- [ ] Browsing stackoverflow home page
Please check out the list of [issues](https://github.com/gautamkrishnar/socli/issues).
### Testing
Automated tests are setup by using
[pytest](https://docs.pytest.org/en/latest/contents.html), the tests can be run
locally by invoking a `python setup.py test`.
All tests are in the `socli/tests/` subdirectory of this repository.
TravisCI is supposed to run the test-suite on build.
### π₯ How to Contribute ?
If you are willing to contribute to SoCLI project, you are awesome!
Just follow the steps given in [CONTRIBUTING.md](https://github.com/gautamkrishnar/socli/blob/master/CONTRIBUTING.md) π
## Maintainers
Please reach out to any of the following people if you have any queries:
<table>
<tr>
<td align="center"><a href="https://github.com/gautamkrishnar"><img src="https://avatars2.githubusercontent.com/u/8397274?v=4" width="100px;" alt=""/><br /><sub><b>Gautam krishna R</b></sub></a><br /><a href="https://github.com/gautamkrishnar/SoCLI/commits?author=gautamkrishnar" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/hedythedev"><img src="https://avatars0.githubusercontent.com/u/50042066?v=4" width="100px;" alt=""/><br /><sub><b>Hedy Li</b></sub></a><br /><a href="https://github.com/gautamkrishnar/SoCLI/commits?author=hedythedev" title="Code">π»</a></td>
</tr>
</table>
## Contributors β¨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center"><a href="https://github.com/aaxu"><img src="https://avatars2.githubusercontent.com/u/19481525?v=4?s=100" width="100px;" alt=""/><br /><sub><b>aaxu</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=aaxu" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/kilbee"><img src="https://avatars1.githubusercontent.com/u/2181891?v=4?s=100" width="100px;" alt=""/><br /><sub><b>kilbee</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=kilbee" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/deanWombourne"><img src="https://avatars1.githubusercontent.com/u/7887119?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam Dean</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=deanWombourne" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/mwwynne"><img src="https://avatars1.githubusercontent.com/u/3174043?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mwwynne</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=mwwynne" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/cpu82"><img src="https://avatars2.githubusercontent.com/u/4080230?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Carlos J. Puga Medina</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/issues?q=author%3Acpu82" title="Bug reports">π</a></td>
<td align="center"><a href="http://jlericson.com/"><img src="https://avatars1.githubusercontent.com/u/1520759?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jon Ericson</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jericson" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/kumarankit0411"><img src="https://avatars2.githubusercontent.com/u/19763730?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ankit Kr. Singh</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=kumarankit0411" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://alvaharsha.com/"><img src="https://avatars2.githubusercontent.com/u/11926689?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Harsha Alva</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=aharshac" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/piamancini"><img src="https://avatars2.githubusercontent.com/u/3671070?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Pia Mancini</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=piamancini" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/adityatandon007"><img src="https://avatars2.githubusercontent.com/u/25108385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aditya Tandon</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/issues?q=author%3Aadityatandon007" title="Bug reports">π</a></td>
<td align="center"><a href="https://github.com/Aksh77"><img src="https://avatars0.githubusercontent.com/u/12583292?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Akshatha Nayak</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Aksh77" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/liamhawkins"><img src="https://avatars3.githubusercontent.com/u/22647996?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Liam Hawkins</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=liamhawkins" title="Code">π»</a></td>
<td align="center"><a href="http://arount.info/"><img src="https://avatars3.githubusercontent.com/u/4593141?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Arount</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=arount" title="Code">π»</a></td>
<td align="center"><a href="https://breakpoint.purrfect.fr/"><img src="https://avatars3.githubusercontent.com/u/4958985?v=4?s=100" width="100px;" alt=""/><br /><sub><b>CΓ©dric Picard</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/issues?q=author%3Acym13" title="Bug reports">π</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/amartyaamp"><img src="https://avatars1.githubusercontent.com/u/7647235?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Amartya Chaudhuri</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=amartyaamp" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/elliott-beach"><img src="https://avatars1.githubusercontent.com/u/13651458?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elliott Beach</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=elliott-beach" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/prashantchahal26"><img src="https://avatars3.githubusercontent.com/u/14841072?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Prashant Chahal</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=prashantchahal26" title="Code">π»</a></td>
<td align="center"><a href="https://insiyaa.github.io/"><img src="https://avatars2.githubusercontent.com/u/29259374?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Insiyah Hajoori</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Insiyaa" title="Code">π»</a></td>
<td align="center"><a href="https://thevirtuoso1973.github.io/"><img src="https://avatars2.githubusercontent.com/u/46009390?v=4?s=100" width="100px;" alt=""/><br /><sub><b>C</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=thevirtuoso1973" title="Code">π»</a></td>
<td align="center"><a href="https://liambyrne.nz/"><img src="https://avatars2.githubusercontent.com/u/18452094?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Liam Byrne</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=liambyrnenz" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/tranchikhang"><img src="https://avatars3.githubusercontent.com/u/16659747?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tran Chi Khang</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=tranchikhang" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/AlexPoulsen"><img src="https://avatars1.githubusercontent.com/u/9259671?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alix Poulsen</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=AlexPoulsen" title="Documentation">π</a></td>
<td align="center"><a href="https://gitlab.com/albalitz"><img src="https://avatars1.githubusercontent.com/u/9308749?v=4?s=100" width="100px;" alt=""/><br /><sub><b>albalitz</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=albalitz" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/anirudnits"><img src="https://avatars3.githubusercontent.com/u/25305301?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aniruddha Bhattacharjee</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=anirudnits" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/dstjacques"><img src="https://avatars0.githubusercontent.com/u/735244?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel St.Jacques</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=dstjacques" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/donnell794"><img src="https://avatars2.githubusercontent.com/u/11854190?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Donnell Muse</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=donnell794" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/jm66"><img src="https://avatars2.githubusercontent.com/u/2047620?v=4?s=100" width="100px;" alt=""/><br /><sub><b>JM Lopez</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jm66" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/jophab"><img src="https://avatars3.githubusercontent.com/u/13940974?v=4?s=100" width="100px;" alt=""/><br /><sub><b>JOBIN PHILIP ABRAHAM</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jophab" title="Documentation">π</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/jkukul"><img src="https://avatars2.githubusercontent.com/u/7057316?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jakub Kukul</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jkukul" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/LuckyPigeon"><img src="https://avatars0.githubusercontent.com/u/32315294?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Pigeon</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=LuckyPigeon" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/therajdeepbiswas"><img src="https://avatars2.githubusercontent.com/u/32306614?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rajdeep Biswas</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=therajdeepbiswas" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/sk364"><img src="https://avatars1.githubusercontent.com/u/15685616?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sachin Kukreja</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=sk364" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/simon3270"><img src="https://avatars3.githubusercontent.com/u/1138498?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Simon Reap</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=simon3270" title="Code">π»</a></td>
<td align="center"><a href="https://stackoverflow.com/users/8709791/srig?tab=profile"><img src="https://avatars1.githubusercontent.com/u/32685230?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Srisaila</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=srigalibe" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/agarwalnishtha"><img src="https://avatars0.githubusercontent.com/u/35678934?v=4?s=100" width="100px;" alt=""/><br /><sub><b>agarwalnishtha</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=agarwalnishtha" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/fredkozlowski"><img src="https://avatars0.githubusercontent.com/u/15177661?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Frederick Kozlowski</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=fredkozlowski" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/elath03"><img src="https://avatars2.githubusercontent.com/u/20517890?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Esha Lath</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=elath03" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/thumpri"><img src="https://avatars2.githubusercontent.com/u/30461824?v=4?s=100" width="100px;" alt=""/><br /><sub><b>thumpri</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=thumpri" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/adamjyz"><img src="https://avatars1.githubusercontent.com/u/55098065?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Adam Zhang</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=adamjyz" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/prathampowar2001"><img src="https://avatars0.githubusercontent.com/u/30765406?v=4?s=100" width="100px;" alt=""/><br /><sub><b>prathampowar2001</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=prathampowar2001" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/suvhotta"><img src="https://avatars0.githubusercontent.com/u/16841978?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Subhankar Hotta</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=suvhotta" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/ankushduacodes"><img src="https://avatars3.githubusercontent.com/u/61025943?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ankushduacodes</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=ankushduacodes" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/artorias111"><img src="https://avatars2.githubusercontent.com/u/48955393?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Shriram Bhat</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=artorias111" title="Code">π»</a></td>
<td align="center"><a href="http://vjspranav.stag-os.org"><img src="https://avatars0.githubusercontent.com/u/17949836?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vjs Pranav</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=vjspranav" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/Saif807380"><img src="https://avatars2.githubusercontent.com/u/50794619?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Saif Kazi</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Saif807380" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/pstreff"><img src="https://avatars3.githubusercontent.com/u/32448748?v=4?s=100" width="100px;" alt=""/><br /><sub><b>pstreff</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=pstreff" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/anshik1998"><img src="https://avatars0.githubusercontent.com/u/54910667?v=4?s=100" width="100px;" alt=""/><br /><sub><b>anshik1998</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=anshik1998" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/abstanton"><img src="https://avatars1.githubusercontent.com/u/23246639?v=4?s=100" width="100px;" alt=""/><br /><sub><b>abstanton</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=abstanton" title="Code">π»</a></td>
<td align="center"><a href="http://ssyd.pw"><img src="https://avatars3.githubusercontent.com/u/28098330?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sabu Siyad</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=ssiyad" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/pspiagicw"><img src="https://avatars0.githubusercontent.com/u/30765406?v=4?s=100" width="100px;" alt=""/><br /><sub><b>pspiagicw</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=pspiagicw" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/hertzrp"><img src="https://avatars1.githubusercontent.com/u/37788702?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ryan Hertz</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=hertzrp" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/tharunc"><img src="https://avatars3.githubusercontent.com/u/68283386?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tharunc</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=tharunc" title="Documentation">π</a></td>
<td align="center"><a href="https://akrish4.github.io/online-portfolio/"><img src="https://avatars0.githubusercontent.com/u/61831021?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ananthakrishnan Nair RS</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=akrish4" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/muthuannamalai12"><img src="https://avatars2.githubusercontent.com/u/64524822?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Muthu Annamalai.V</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=muthuannamalai12" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/chetak123"><img src="https://avatars1.githubusercontent.com/u/53306550?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ayushman</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=chetak123" title="Code">π»</a></td>
<td align="center"><a href="https://www.linkedin.com/in/tusharnankani"><img src="https://avatars1.githubusercontent.com/u/61280281?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tushar Nankani</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=tusharnankani" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://bandism.net/"><img src="https://avatars.githubusercontent.com/u/22633385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ikko Ashimine</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=eltociear" title="Documentation">π</a></td>
<td align="center"><a href="https://uknowwhoim.me/"><img src="https://avatars.githubusercontent.com/u/51323747?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sidharth Ajithkumar</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=UKnowWhoIm" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/samsheff"><img src="https://avatars.githubusercontent.com/u/228820?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam Sheffres</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=samsheff" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/Rudy2401"><img src="https://avatars.githubusercontent.com/u/19256040?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rushi Dolas</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Rudy2401" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/mostlyvirtual"><img src="https://avatars.githubusercontent.com/u/2424140?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mostlyvirtual</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=mostlyvirtual" title="Code">π»</a></td>
</tr>
</tbody>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
### Bugs
If you are experiencing any bugs, donβt forget to open a [new issue](https://github.com/gautamkrishnar/socli/issues/new).
### Error Solving
If you encounter "AttributeError: 'module' object has no attribute 'SSL ST INIT'
```
sudo pip uninstall pyopenssl
sudo pip install pyopenssl or sudo easy_install pyopenssl
```
### Thanks
* Thanks to all the existing users of SoCLI.
* Thanks to all upvoters and followers on reddit.
* [impress that girl in the Starbucks by browsing SO with your CLI app XD XD](https://www.reddit.com/r/programmingcirclejerk/comments/4pwil4/impress_that_girl_in_the_starbucks_by_browsing_so/) by [insane0hflex](https://www.reddit.com/user/insane0hflex). Thanks for the post π
* Special thanks to people who wrote about SoCLI on their blogs and websites:
* [wykop.pl](http://www.wykop.pl/wpis/18286681/python-stackoverflow-interfejs-bo-sciaga-musi-byc-/)
* [memect.com](http://forum.memect.com/blog/thread/py-2016-06-26/)
* [pseudoscripter](https://pseudoscripter.wordpress.com/2016/06/28/socli-stack-overflow-command-line-client/)
* [b.hatena.ne.jp](http://b.hatena.ne.jp/entry/s/github.com/gautamkrishnar/socli)
* [jericson.github.io](http://jericson.github.io/2016/08/25/long_tail_docs.html)
* [The really big list of really interesting Open Source projects](https://medium.com/@likid.geimfari/the-list-of-interesting-open-source-projects-2daaa2153f7c#.6qm1v3ioa)
* [Ostechnix](http://www.ostechnix.com/search-browse-stack-overflow-website-commandline/)
* [lamiradadelreplicante.com](lamiradadelreplicante.com/2017/04/17/socli-navegando-por-stack-overflow-sin-salir-de-la-terminal)
* [dou.ua](https://dou.ua/lenta/digests/python-digest-13/)
* Tweets:
* [@cyb3rops](https://twitter.com/cyb3rops/status/747380776350650368)
* [@pythontrending](https://twitter.com/pythontrending/status/745635512803819521)
* Thanks to my favourite IDE JetBrains PyCharm β€οΈ π
<img src="https://cloud.githubusercontent.com/assets/8397274/16355101/edb3b98a-3aca-11e6-8db5-5f54cd4b9969.png" width=80px>
### Sponsors
Sponsor SoCLI on [Open Collective](https://opencollective.com/socli):
* Thanks [Steven Reubenstone](https://www.collaborizm.com/profile/1) for contributing $5 for the issue [#22](https://github.com/gautamkrishnar/socli/issues/22)
### Liked it?
Hope you liked this project, don't forget to give it a star β
%package -n python3-socli
Summary: Stack overflow command line interface. SoCLI allows you to search and browse stack overflow from the terminal.
Provides: python-socli
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-socli
# SoCLI [ ](https://pypi.org/project/socli/) [](https://travis-ci.com/gautamkrishnar/socli) [](https://gitter.im/socli-community/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Stack Overflow command line written in python. Using SoCLI you can search and browse Stack Overflow without leaving the terminal. Just use the **socli** command:

### Installation
##### Supported platforms
* Linux
* Windows
* Mac
##### Requirements
* Python 3.5 or higher
##### For Linux
Install **python** and just use **pip** command to install **socli**:
```bash
sudo apt-get install python3 python3-pip
pip install socli
```
##### For Windows
[Download and install Python](https://www.python.org/downloads/). Don't forget to check the option "Add to path".
Open a command prompt with administrative privileges and use **pip** command to install **socli**:
```bash
pip install socli
```
Use **easy_install** if your python path has a space in it. [Read more: "Failed to create process"](https://github.com/gautamkrishnar/socli/issues/6):
```
easy_install socli
```
##### For Mac/Linux (via [homebrew](https://brew.sh/))
Install **socli**:
```bash
brew tap gautamkrishnar/socli
brew install socli
```
##### Enabling the shell autocompletion
If you installed socli via pyPi you may need to enable the shell autocompletion. Add the following to your `.bashrc` file to enable it:
```bash
socli --register
```
### Updating
Use the command below to update your existing version of **socli** to the newest version so that you won't miss any features:
```bash
pip install --upgrade socli
```
If you installed via homebrew:
```bash
brew upgrade socli
```
### Usage
##### Quick Search
Use the **socli** command followed by the search query:
```bash
socli for loop in python syntax
```
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 Search
You can search Stack Overflow interactively by using the command below:
```sh
socli -iq html error 404
```
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 Search
This will allow you to specify a requested question number for your query. For example, consider the following command:
```sh
socli -r 2 -q javascript prototype function
```
This command searches for "*javascript prototype function*" in Stack Overflow and displays the second question that contains it.
##### Topic-Based Search
Stack 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:
```sh
socli -t javascript -q window.open
```
You can also specify multiple tags, Just separate them with a comma:
```sh
socli -t javascript,node.js -q window.open
```
See the complete list of tags [here](http://stackoverflow.com/tags).
##### User Profile Browsing
Just use the command below to set your [user ID]( http://meta.stackexchange.com/a/111130) in socli. When you execute the command next time, it will automatically fetch the data.
```sh
socli -u
```
if your are an extensive user of StackOverflow, **socli** allows you to set your own API key to overcome the [StackOverflow API Limitations](http://stackapps.com/a/3057/41332). Just use the command below:
```sh
socli --api
```
You can get an API Key [here](http://stackapps.com/apps/oauth/register) by registering as a new app. Please don't use SoCLI as app name.
##### Posting a New Question
If 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:
```sh
socli -n
```
##### Opening a url directly
If you have the url of the Stack Overflow post then you can pass it using `--open-url` or `-o`.
For example
``` socli --open-url https://stackoverflow.com/questions/20639180/explanation-of-how-nested-list-comprehension-works```
### Syntax:
**socli** has the following syntax
```
Usage: socli [ Arguments] < Search Query >
```
###### Arguments (optional)
| Short | Long | Description | Example |
|--------|--------|--------|--------|
| -q | --query | Used to specify the query when arguments are used. A query value must be passed to it. If it is used alone (socli -q query) then it will display the same result as **socli query**. | **socli -q query** |
| -i | --interactive | Used to search interactively. It doesn't take any values. It must be followed by a -q or --query after it. | **socli -i -q query** |
| -r | --res | Used for manual search. It takes the question number as the argument and it must be followed by a -q or --query after it. | **socli -r 4 -q query** |
| -t | --tag | Specifies the tag to search for the query on Stack Overflow. It must be followed by a -q or --query after it. | **socli -t js -q query** |
| -n | --new | Opens the web browser to create a new question on Stack Overflow. | **socli --new** |
| -u | --user | Displays the user profile informations. If no argument is given, it will display your profile. | **socli -u 22656** |
| -a | --api | Sets a custom API key. | **socli --api** |
| -d | --del | Deletes the configuration file generated by socli -u manually. | **socli -d** |
| -s | --sosearch | SoCLI uses Google search by default to search for questions. To override this and use stackoverflow's default search instead. | **socli -s -q for loop python** |
| -h | --help | Displays the help text. | **socli --help** |
| -o | --open-url | Displays the given url in socli if possible if not opens in browser. | **socli -o https://stackoverflow.com/questions/20639180/explanation-of-how-nested-list-comprehension-works** |
| -j | --json-output | Gives output to stdout as json | **socli -jq for loop python** |
| -g | --register | Registers socli's shell autocompletion | socli -g |
| -v | --version | Displays the version of socli. | **socli -v** |
###### Query
This term refers to what you're searching for in Stack Overflow.
### Features
These are the amazing features of SoCLI:
* Manual Search
* Interactively browse Stack Overflow using the interactive mode
* Coloured interface
* Question stats view
* Tag support
* Can open the page in a browser
* Can view user profiles
* Can create a new question via the web browser
* Can open a Stack Overflow page on the terminal directly from a url
### To Do
Command line interface for:
- [ ] Stack Overflow authentication
- [ ] Posting to Stack Overflow
- [ ] Upvote answer
- [ ] Comment on an answer
- [ ] Browsing stackoverflow home page
Please check out the list of [issues](https://github.com/gautamkrishnar/socli/issues).
### Testing
Automated tests are setup by using
[pytest](https://docs.pytest.org/en/latest/contents.html), the tests can be run
locally by invoking a `python setup.py test`.
All tests are in the `socli/tests/` subdirectory of this repository.
TravisCI is supposed to run the test-suite on build.
### π₯ How to Contribute ?
If you are willing to contribute to SoCLI project, you are awesome!
Just follow the steps given in [CONTRIBUTING.md](https://github.com/gautamkrishnar/socli/blob/master/CONTRIBUTING.md) π
## Maintainers
Please reach out to any of the following people if you have any queries:
<table>
<tr>
<td align="center"><a href="https://github.com/gautamkrishnar"><img src="https://avatars2.githubusercontent.com/u/8397274?v=4" width="100px;" alt=""/><br /><sub><b>Gautam krishna R</b></sub></a><br /><a href="https://github.com/gautamkrishnar/SoCLI/commits?author=gautamkrishnar" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/hedythedev"><img src="https://avatars0.githubusercontent.com/u/50042066?v=4" width="100px;" alt=""/><br /><sub><b>Hedy Li</b></sub></a><br /><a href="https://github.com/gautamkrishnar/SoCLI/commits?author=hedythedev" title="Code">π»</a></td>
</tr>
</table>
## Contributors β¨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center"><a href="https://github.com/aaxu"><img src="https://avatars2.githubusercontent.com/u/19481525?v=4?s=100" width="100px;" alt=""/><br /><sub><b>aaxu</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=aaxu" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/kilbee"><img src="https://avatars1.githubusercontent.com/u/2181891?v=4?s=100" width="100px;" alt=""/><br /><sub><b>kilbee</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=kilbee" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/deanWombourne"><img src="https://avatars1.githubusercontent.com/u/7887119?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam Dean</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=deanWombourne" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/mwwynne"><img src="https://avatars1.githubusercontent.com/u/3174043?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mwwynne</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=mwwynne" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/cpu82"><img src="https://avatars2.githubusercontent.com/u/4080230?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Carlos J. Puga Medina</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/issues?q=author%3Acpu82" title="Bug reports">π</a></td>
<td align="center"><a href="http://jlericson.com/"><img src="https://avatars1.githubusercontent.com/u/1520759?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jon Ericson</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jericson" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/kumarankit0411"><img src="https://avatars2.githubusercontent.com/u/19763730?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ankit Kr. Singh</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=kumarankit0411" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://alvaharsha.com/"><img src="https://avatars2.githubusercontent.com/u/11926689?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Harsha Alva</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=aharshac" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/piamancini"><img src="https://avatars2.githubusercontent.com/u/3671070?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Pia Mancini</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=piamancini" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/adityatandon007"><img src="https://avatars2.githubusercontent.com/u/25108385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aditya Tandon</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/issues?q=author%3Aadityatandon007" title="Bug reports">π</a></td>
<td align="center"><a href="https://github.com/Aksh77"><img src="https://avatars0.githubusercontent.com/u/12583292?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Akshatha Nayak</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Aksh77" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/liamhawkins"><img src="https://avatars3.githubusercontent.com/u/22647996?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Liam Hawkins</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=liamhawkins" title="Code">π»</a></td>
<td align="center"><a href="http://arount.info/"><img src="https://avatars3.githubusercontent.com/u/4593141?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Arount</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=arount" title="Code">π»</a></td>
<td align="center"><a href="https://breakpoint.purrfect.fr/"><img src="https://avatars3.githubusercontent.com/u/4958985?v=4?s=100" width="100px;" alt=""/><br /><sub><b>CΓ©dric Picard</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/issues?q=author%3Acym13" title="Bug reports">π</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/amartyaamp"><img src="https://avatars1.githubusercontent.com/u/7647235?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Amartya Chaudhuri</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=amartyaamp" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/elliott-beach"><img src="https://avatars1.githubusercontent.com/u/13651458?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elliott Beach</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=elliott-beach" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/prashantchahal26"><img src="https://avatars3.githubusercontent.com/u/14841072?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Prashant Chahal</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=prashantchahal26" title="Code">π»</a></td>
<td align="center"><a href="https://insiyaa.github.io/"><img src="https://avatars2.githubusercontent.com/u/29259374?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Insiyah Hajoori</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Insiyaa" title="Code">π»</a></td>
<td align="center"><a href="https://thevirtuoso1973.github.io/"><img src="https://avatars2.githubusercontent.com/u/46009390?v=4?s=100" width="100px;" alt=""/><br /><sub><b>C</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=thevirtuoso1973" title="Code">π»</a></td>
<td align="center"><a href="https://liambyrne.nz/"><img src="https://avatars2.githubusercontent.com/u/18452094?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Liam Byrne</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=liambyrnenz" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/tranchikhang"><img src="https://avatars3.githubusercontent.com/u/16659747?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tran Chi Khang</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=tranchikhang" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/AlexPoulsen"><img src="https://avatars1.githubusercontent.com/u/9259671?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alix Poulsen</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=AlexPoulsen" title="Documentation">π</a></td>
<td align="center"><a href="https://gitlab.com/albalitz"><img src="https://avatars1.githubusercontent.com/u/9308749?v=4?s=100" width="100px;" alt=""/><br /><sub><b>albalitz</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=albalitz" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/anirudnits"><img src="https://avatars3.githubusercontent.com/u/25305301?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aniruddha Bhattacharjee</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=anirudnits" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/dstjacques"><img src="https://avatars0.githubusercontent.com/u/735244?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel St.Jacques</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=dstjacques" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/donnell794"><img src="https://avatars2.githubusercontent.com/u/11854190?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Donnell Muse</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=donnell794" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/jm66"><img src="https://avatars2.githubusercontent.com/u/2047620?v=4?s=100" width="100px;" alt=""/><br /><sub><b>JM Lopez</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jm66" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/jophab"><img src="https://avatars3.githubusercontent.com/u/13940974?v=4?s=100" width="100px;" alt=""/><br /><sub><b>JOBIN PHILIP ABRAHAM</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jophab" title="Documentation">π</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/jkukul"><img src="https://avatars2.githubusercontent.com/u/7057316?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jakub Kukul</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jkukul" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/LuckyPigeon"><img src="https://avatars0.githubusercontent.com/u/32315294?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Pigeon</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=LuckyPigeon" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/therajdeepbiswas"><img src="https://avatars2.githubusercontent.com/u/32306614?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rajdeep Biswas</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=therajdeepbiswas" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/sk364"><img src="https://avatars1.githubusercontent.com/u/15685616?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sachin Kukreja</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=sk364" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/simon3270"><img src="https://avatars3.githubusercontent.com/u/1138498?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Simon Reap</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=simon3270" title="Code">π»</a></td>
<td align="center"><a href="https://stackoverflow.com/users/8709791/srig?tab=profile"><img src="https://avatars1.githubusercontent.com/u/32685230?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Srisaila</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=srigalibe" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/agarwalnishtha"><img src="https://avatars0.githubusercontent.com/u/35678934?v=4?s=100" width="100px;" alt=""/><br /><sub><b>agarwalnishtha</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=agarwalnishtha" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/fredkozlowski"><img src="https://avatars0.githubusercontent.com/u/15177661?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Frederick Kozlowski</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=fredkozlowski" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/elath03"><img src="https://avatars2.githubusercontent.com/u/20517890?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Esha Lath</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=elath03" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/thumpri"><img src="https://avatars2.githubusercontent.com/u/30461824?v=4?s=100" width="100px;" alt=""/><br /><sub><b>thumpri</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=thumpri" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/adamjyz"><img src="https://avatars1.githubusercontent.com/u/55098065?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Adam Zhang</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=adamjyz" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/prathampowar2001"><img src="https://avatars0.githubusercontent.com/u/30765406?v=4?s=100" width="100px;" alt=""/><br /><sub><b>prathampowar2001</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=prathampowar2001" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/suvhotta"><img src="https://avatars0.githubusercontent.com/u/16841978?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Subhankar Hotta</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=suvhotta" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/ankushduacodes"><img src="https://avatars3.githubusercontent.com/u/61025943?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ankushduacodes</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=ankushduacodes" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/artorias111"><img src="https://avatars2.githubusercontent.com/u/48955393?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Shriram Bhat</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=artorias111" title="Code">π»</a></td>
<td align="center"><a href="http://vjspranav.stag-os.org"><img src="https://avatars0.githubusercontent.com/u/17949836?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vjs Pranav</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=vjspranav" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/Saif807380"><img src="https://avatars2.githubusercontent.com/u/50794619?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Saif Kazi</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Saif807380" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/pstreff"><img src="https://avatars3.githubusercontent.com/u/32448748?v=4?s=100" width="100px;" alt=""/><br /><sub><b>pstreff</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=pstreff" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/anshik1998"><img src="https://avatars0.githubusercontent.com/u/54910667?v=4?s=100" width="100px;" alt=""/><br /><sub><b>anshik1998</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=anshik1998" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/abstanton"><img src="https://avatars1.githubusercontent.com/u/23246639?v=4?s=100" width="100px;" alt=""/><br /><sub><b>abstanton</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=abstanton" title="Code">π»</a></td>
<td align="center"><a href="http://ssyd.pw"><img src="https://avatars3.githubusercontent.com/u/28098330?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sabu Siyad</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=ssiyad" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/pspiagicw"><img src="https://avatars0.githubusercontent.com/u/30765406?v=4?s=100" width="100px;" alt=""/><br /><sub><b>pspiagicw</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=pspiagicw" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/hertzrp"><img src="https://avatars1.githubusercontent.com/u/37788702?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ryan Hertz</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=hertzrp" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/tharunc"><img src="https://avatars3.githubusercontent.com/u/68283386?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tharunc</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=tharunc" title="Documentation">π</a></td>
<td align="center"><a href="https://akrish4.github.io/online-portfolio/"><img src="https://avatars0.githubusercontent.com/u/61831021?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ananthakrishnan Nair RS</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=akrish4" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/muthuannamalai12"><img src="https://avatars2.githubusercontent.com/u/64524822?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Muthu Annamalai.V</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=muthuannamalai12" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/chetak123"><img src="https://avatars1.githubusercontent.com/u/53306550?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ayushman</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=chetak123" title="Code">π»</a></td>
<td align="center"><a href="https://www.linkedin.com/in/tusharnankani"><img src="https://avatars1.githubusercontent.com/u/61280281?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tushar Nankani</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=tusharnankani" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://bandism.net/"><img src="https://avatars.githubusercontent.com/u/22633385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ikko Ashimine</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=eltociear" title="Documentation">π</a></td>
<td align="center"><a href="https://uknowwhoim.me/"><img src="https://avatars.githubusercontent.com/u/51323747?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sidharth Ajithkumar</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=UKnowWhoIm" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/samsheff"><img src="https://avatars.githubusercontent.com/u/228820?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam Sheffres</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=samsheff" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/Rudy2401"><img src="https://avatars.githubusercontent.com/u/19256040?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rushi Dolas</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Rudy2401" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/mostlyvirtual"><img src="https://avatars.githubusercontent.com/u/2424140?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mostlyvirtual</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=mostlyvirtual" title="Code">π»</a></td>
</tr>
</tbody>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
### Bugs
If you are experiencing any bugs, donβt forget to open a [new issue](https://github.com/gautamkrishnar/socli/issues/new).
### Error Solving
If you encounter "AttributeError: 'module' object has no attribute 'SSL ST INIT'
```
sudo pip uninstall pyopenssl
sudo pip install pyopenssl or sudo easy_install pyopenssl
```
### Thanks
* Thanks to all the existing users of SoCLI.
* Thanks to all upvoters and followers on reddit.
* [impress that girl in the Starbucks by browsing SO with your CLI app XD XD](https://www.reddit.com/r/programmingcirclejerk/comments/4pwil4/impress_that_girl_in_the_starbucks_by_browsing_so/) by [insane0hflex](https://www.reddit.com/user/insane0hflex). Thanks for the post π
* Special thanks to people who wrote about SoCLI on their blogs and websites:
* [wykop.pl](http://www.wykop.pl/wpis/18286681/python-stackoverflow-interfejs-bo-sciaga-musi-byc-/)
* [memect.com](http://forum.memect.com/blog/thread/py-2016-06-26/)
* [pseudoscripter](https://pseudoscripter.wordpress.com/2016/06/28/socli-stack-overflow-command-line-client/)
* [b.hatena.ne.jp](http://b.hatena.ne.jp/entry/s/github.com/gautamkrishnar/socli)
* [jericson.github.io](http://jericson.github.io/2016/08/25/long_tail_docs.html)
* [The really big list of really interesting Open Source projects](https://medium.com/@likid.geimfari/the-list-of-interesting-open-source-projects-2daaa2153f7c#.6qm1v3ioa)
* [Ostechnix](http://www.ostechnix.com/search-browse-stack-overflow-website-commandline/)
* [lamiradadelreplicante.com](lamiradadelreplicante.com/2017/04/17/socli-navegando-por-stack-overflow-sin-salir-de-la-terminal)
* [dou.ua](https://dou.ua/lenta/digests/python-digest-13/)
* Tweets:
* [@cyb3rops](https://twitter.com/cyb3rops/status/747380776350650368)
* [@pythontrending](https://twitter.com/pythontrending/status/745635512803819521)
* Thanks to my favourite IDE JetBrains PyCharm β€οΈ π
<img src="https://cloud.githubusercontent.com/assets/8397274/16355101/edb3b98a-3aca-11e6-8db5-5f54cd4b9969.png" width=80px>
### Sponsors
Sponsor SoCLI on [Open Collective](https://opencollective.com/socli):
* Thanks [Steven Reubenstone](https://www.collaborizm.com/profile/1) for contributing $5 for the issue [#22](https://github.com/gautamkrishnar/socli/issues/22)
### Liked it?
Hope you liked this project, don't forget to give it a star β
%package help
Summary: Development documents and examples for socli
Provides: python3-socli-doc
%description help
# SoCLI [ ](https://pypi.org/project/socli/) [](https://travis-ci.com/gautamkrishnar/socli) [](https://gitter.im/socli-community/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Stack Overflow command line written in python. Using SoCLI you can search and browse Stack Overflow without leaving the terminal. Just use the **socli** command:

### Installation
##### Supported platforms
* Linux
* Windows
* Mac
##### Requirements
* Python 3.5 or higher
##### For Linux
Install **python** and just use **pip** command to install **socli**:
```bash
sudo apt-get install python3 python3-pip
pip install socli
```
##### For Windows
[Download and install Python](https://www.python.org/downloads/). Don't forget to check the option "Add to path".
Open a command prompt with administrative privileges and use **pip** command to install **socli**:
```bash
pip install socli
```
Use **easy_install** if your python path has a space in it. [Read more: "Failed to create process"](https://github.com/gautamkrishnar/socli/issues/6):
```
easy_install socli
```
##### For Mac/Linux (via [homebrew](https://brew.sh/))
Install **socli**:
```bash
brew tap gautamkrishnar/socli
brew install socli
```
##### Enabling the shell autocompletion
If you installed socli via pyPi you may need to enable the shell autocompletion. Add the following to your `.bashrc` file to enable it:
```bash
socli --register
```
### Updating
Use the command below to update your existing version of **socli** to the newest version so that you won't miss any features:
```bash
pip install --upgrade socli
```
If you installed via homebrew:
```bash
brew upgrade socli
```
### Usage
##### Quick Search
Use the **socli** command followed by the search query:
```bash
socli for loop in python syntax
```
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 Search
You can search Stack Overflow interactively by using the command below:
```sh
socli -iq html error 404
```
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 Search
This will allow you to specify a requested question number for your query. For example, consider the following command:
```sh
socli -r 2 -q javascript prototype function
```
This command searches for "*javascript prototype function*" in Stack Overflow and displays the second question that contains it.
##### Topic-Based Search
Stack 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:
```sh
socli -t javascript -q window.open
```
You can also specify multiple tags, Just separate them with a comma:
```sh
socli -t javascript,node.js -q window.open
```
See the complete list of tags [here](http://stackoverflow.com/tags).
##### User Profile Browsing
Just use the command below to set your [user ID]( http://meta.stackexchange.com/a/111130) in socli. When you execute the command next time, it will automatically fetch the data.
```sh
socli -u
```
if your are an extensive user of StackOverflow, **socli** allows you to set your own API key to overcome the [StackOverflow API Limitations](http://stackapps.com/a/3057/41332). Just use the command below:
```sh
socli --api
```
You can get an API Key [here](http://stackapps.com/apps/oauth/register) by registering as a new app. Please don't use SoCLI as app name.
##### Posting a New Question
If 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:
```sh
socli -n
```
##### Opening a url directly
If you have the url of the Stack Overflow post then you can pass it using `--open-url` or `-o`.
For example
``` socli --open-url https://stackoverflow.com/questions/20639180/explanation-of-how-nested-list-comprehension-works```
### Syntax:
**socli** has the following syntax
```
Usage: socli [ Arguments] < Search Query >
```
###### Arguments (optional)
| Short | Long | Description | Example |
|--------|--------|--------|--------|
| -q | --query | Used to specify the query when arguments are used. A query value must be passed to it. If it is used alone (socli -q query) then it will display the same result as **socli query**. | **socli -q query** |
| -i | --interactive | Used to search interactively. It doesn't take any values. It must be followed by a -q or --query after it. | **socli -i -q query** |
| -r | --res | Used for manual search. It takes the question number as the argument and it must be followed by a -q or --query after it. | **socli -r 4 -q query** |
| -t | --tag | Specifies the tag to search for the query on Stack Overflow. It must be followed by a -q or --query after it. | **socli -t js -q query** |
| -n | --new | Opens the web browser to create a new question on Stack Overflow. | **socli --new** |
| -u | --user | Displays the user profile informations. If no argument is given, it will display your profile. | **socli -u 22656** |
| -a | --api | Sets a custom API key. | **socli --api** |
| -d | --del | Deletes the configuration file generated by socli -u manually. | **socli -d** |
| -s | --sosearch | SoCLI uses Google search by default to search for questions. To override this and use stackoverflow's default search instead. | **socli -s -q for loop python** |
| -h | --help | Displays the help text. | **socli --help** |
| -o | --open-url | Displays the given url in socli if possible if not opens in browser. | **socli -o https://stackoverflow.com/questions/20639180/explanation-of-how-nested-list-comprehension-works** |
| -j | --json-output | Gives output to stdout as json | **socli -jq for loop python** |
| -g | --register | Registers socli's shell autocompletion | socli -g |
| -v | --version | Displays the version of socli. | **socli -v** |
###### Query
This term refers to what you're searching for in Stack Overflow.
### Features
These are the amazing features of SoCLI:
* Manual Search
* Interactively browse Stack Overflow using the interactive mode
* Coloured interface
* Question stats view
* Tag support
* Can open the page in a browser
* Can view user profiles
* Can create a new question via the web browser
* Can open a Stack Overflow page on the terminal directly from a url
### To Do
Command line interface for:
- [ ] Stack Overflow authentication
- [ ] Posting to Stack Overflow
- [ ] Upvote answer
- [ ] Comment on an answer
- [ ] Browsing stackoverflow home page
Please check out the list of [issues](https://github.com/gautamkrishnar/socli/issues).
### Testing
Automated tests are setup by using
[pytest](https://docs.pytest.org/en/latest/contents.html), the tests can be run
locally by invoking a `python setup.py test`.
All tests are in the `socli/tests/` subdirectory of this repository.
TravisCI is supposed to run the test-suite on build.
### π₯ How to Contribute ?
If you are willing to contribute to SoCLI project, you are awesome!
Just follow the steps given in [CONTRIBUTING.md](https://github.com/gautamkrishnar/socli/blob/master/CONTRIBUTING.md) π
## Maintainers
Please reach out to any of the following people if you have any queries:
<table>
<tr>
<td align="center"><a href="https://github.com/gautamkrishnar"><img src="https://avatars2.githubusercontent.com/u/8397274?v=4" width="100px;" alt=""/><br /><sub><b>Gautam krishna R</b></sub></a><br /><a href="https://github.com/gautamkrishnar/SoCLI/commits?author=gautamkrishnar" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/hedythedev"><img src="https://avatars0.githubusercontent.com/u/50042066?v=4" width="100px;" alt=""/><br /><sub><b>Hedy Li</b></sub></a><br /><a href="https://github.com/gautamkrishnar/SoCLI/commits?author=hedythedev" title="Code">π»</a></td>
</tr>
</table>
## Contributors β¨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tbody>
<tr>
<td align="center"><a href="https://github.com/aaxu"><img src="https://avatars2.githubusercontent.com/u/19481525?v=4?s=100" width="100px;" alt=""/><br /><sub><b>aaxu</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=aaxu" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/kilbee"><img src="https://avatars1.githubusercontent.com/u/2181891?v=4?s=100" width="100px;" alt=""/><br /><sub><b>kilbee</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=kilbee" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/deanWombourne"><img src="https://avatars1.githubusercontent.com/u/7887119?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam Dean</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=deanWombourne" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/mwwynne"><img src="https://avatars1.githubusercontent.com/u/3174043?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mwwynne</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=mwwynne" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/cpu82"><img src="https://avatars2.githubusercontent.com/u/4080230?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Carlos J. Puga Medina</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/issues?q=author%3Acpu82" title="Bug reports">π</a></td>
<td align="center"><a href="http://jlericson.com/"><img src="https://avatars1.githubusercontent.com/u/1520759?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jon Ericson</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jericson" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/kumarankit0411"><img src="https://avatars2.githubusercontent.com/u/19763730?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ankit Kr. Singh</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=kumarankit0411" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://alvaharsha.com/"><img src="https://avatars2.githubusercontent.com/u/11926689?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Harsha Alva</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=aharshac" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/piamancini"><img src="https://avatars2.githubusercontent.com/u/3671070?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Pia Mancini</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=piamancini" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/adityatandon007"><img src="https://avatars2.githubusercontent.com/u/25108385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aditya Tandon</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/issues?q=author%3Aadityatandon007" title="Bug reports">π</a></td>
<td align="center"><a href="https://github.com/Aksh77"><img src="https://avatars0.githubusercontent.com/u/12583292?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Akshatha Nayak</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Aksh77" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/liamhawkins"><img src="https://avatars3.githubusercontent.com/u/22647996?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Liam Hawkins</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=liamhawkins" title="Code">π»</a></td>
<td align="center"><a href="http://arount.info/"><img src="https://avatars3.githubusercontent.com/u/4593141?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Arount</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=arount" title="Code">π»</a></td>
<td align="center"><a href="https://breakpoint.purrfect.fr/"><img src="https://avatars3.githubusercontent.com/u/4958985?v=4?s=100" width="100px;" alt=""/><br /><sub><b>CΓ©dric Picard</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/issues?q=author%3Acym13" title="Bug reports">π</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/amartyaamp"><img src="https://avatars1.githubusercontent.com/u/7647235?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Amartya Chaudhuri</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=amartyaamp" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/elliott-beach"><img src="https://avatars1.githubusercontent.com/u/13651458?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elliott Beach</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=elliott-beach" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/prashantchahal26"><img src="https://avatars3.githubusercontent.com/u/14841072?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Prashant Chahal</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=prashantchahal26" title="Code">π»</a></td>
<td align="center"><a href="https://insiyaa.github.io/"><img src="https://avatars2.githubusercontent.com/u/29259374?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Insiyah Hajoori</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Insiyaa" title="Code">π»</a></td>
<td align="center"><a href="https://thevirtuoso1973.github.io/"><img src="https://avatars2.githubusercontent.com/u/46009390?v=4?s=100" width="100px;" alt=""/><br /><sub><b>C</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=thevirtuoso1973" title="Code">π»</a></td>
<td align="center"><a href="https://liambyrne.nz/"><img src="https://avatars2.githubusercontent.com/u/18452094?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Liam Byrne</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=liambyrnenz" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/tranchikhang"><img src="https://avatars3.githubusercontent.com/u/16659747?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tran Chi Khang</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=tranchikhang" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/AlexPoulsen"><img src="https://avatars1.githubusercontent.com/u/9259671?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alix Poulsen</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=AlexPoulsen" title="Documentation">π</a></td>
<td align="center"><a href="https://gitlab.com/albalitz"><img src="https://avatars1.githubusercontent.com/u/9308749?v=4?s=100" width="100px;" alt=""/><br /><sub><b>albalitz</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=albalitz" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/anirudnits"><img src="https://avatars3.githubusercontent.com/u/25305301?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aniruddha Bhattacharjee</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=anirudnits" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/dstjacques"><img src="https://avatars0.githubusercontent.com/u/735244?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel St.Jacques</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=dstjacques" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/donnell794"><img src="https://avatars2.githubusercontent.com/u/11854190?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Donnell Muse</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=donnell794" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/jm66"><img src="https://avatars2.githubusercontent.com/u/2047620?v=4?s=100" width="100px;" alt=""/><br /><sub><b>JM Lopez</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jm66" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/jophab"><img src="https://avatars3.githubusercontent.com/u/13940974?v=4?s=100" width="100px;" alt=""/><br /><sub><b>JOBIN PHILIP ABRAHAM</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jophab" title="Documentation">π</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/jkukul"><img src="https://avatars2.githubusercontent.com/u/7057316?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jakub Kukul</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=jkukul" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/LuckyPigeon"><img src="https://avatars0.githubusercontent.com/u/32315294?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Pigeon</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=LuckyPigeon" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/therajdeepbiswas"><img src="https://avatars2.githubusercontent.com/u/32306614?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rajdeep Biswas</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=therajdeepbiswas" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/sk364"><img src="https://avatars1.githubusercontent.com/u/15685616?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sachin Kukreja</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=sk364" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/simon3270"><img src="https://avatars3.githubusercontent.com/u/1138498?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Simon Reap</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=simon3270" title="Code">π»</a></td>
<td align="center"><a href="https://stackoverflow.com/users/8709791/srig?tab=profile"><img src="https://avatars1.githubusercontent.com/u/32685230?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Srisaila</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=srigalibe" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/agarwalnishtha"><img src="https://avatars0.githubusercontent.com/u/35678934?v=4?s=100" width="100px;" alt=""/><br /><sub><b>agarwalnishtha</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=agarwalnishtha" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/fredkozlowski"><img src="https://avatars0.githubusercontent.com/u/15177661?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Frederick Kozlowski</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=fredkozlowski" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/elath03"><img src="https://avatars2.githubusercontent.com/u/20517890?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Esha Lath</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=elath03" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/thumpri"><img src="https://avatars2.githubusercontent.com/u/30461824?v=4?s=100" width="100px;" alt=""/><br /><sub><b>thumpri</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=thumpri" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/adamjyz"><img src="https://avatars1.githubusercontent.com/u/55098065?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Adam Zhang</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=adamjyz" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/prathampowar2001"><img src="https://avatars0.githubusercontent.com/u/30765406?v=4?s=100" width="100px;" alt=""/><br /><sub><b>prathampowar2001</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=prathampowar2001" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/suvhotta"><img src="https://avatars0.githubusercontent.com/u/16841978?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Subhankar Hotta</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=suvhotta" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/ankushduacodes"><img src="https://avatars3.githubusercontent.com/u/61025943?v=4?s=100" width="100px;" alt=""/><br /><sub><b>ankushduacodes</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=ankushduacodes" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/artorias111"><img src="https://avatars2.githubusercontent.com/u/48955393?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Shriram Bhat</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=artorias111" title="Code">π»</a></td>
<td align="center"><a href="http://vjspranav.stag-os.org"><img src="https://avatars0.githubusercontent.com/u/17949836?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vjs Pranav</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=vjspranav" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/Saif807380"><img src="https://avatars2.githubusercontent.com/u/50794619?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Saif Kazi</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Saif807380" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/pstreff"><img src="https://avatars3.githubusercontent.com/u/32448748?v=4?s=100" width="100px;" alt=""/><br /><sub><b>pstreff</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=pstreff" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/anshik1998"><img src="https://avatars0.githubusercontent.com/u/54910667?v=4?s=100" width="100px;" alt=""/><br /><sub><b>anshik1998</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=anshik1998" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/abstanton"><img src="https://avatars1.githubusercontent.com/u/23246639?v=4?s=100" width="100px;" alt=""/><br /><sub><b>abstanton</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=abstanton" title="Code">π»</a></td>
<td align="center"><a href="http://ssyd.pw"><img src="https://avatars3.githubusercontent.com/u/28098330?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sabu Siyad</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=ssiyad" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/pspiagicw"><img src="https://avatars0.githubusercontent.com/u/30765406?v=4?s=100" width="100px;" alt=""/><br /><sub><b>pspiagicw</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=pspiagicw" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/hertzrp"><img src="https://avatars1.githubusercontent.com/u/37788702?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ryan Hertz</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=hertzrp" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/tharunc"><img src="https://avatars3.githubusercontent.com/u/68283386?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tharunc</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=tharunc" title="Documentation">π</a></td>
<td align="center"><a href="https://akrish4.github.io/online-portfolio/"><img src="https://avatars0.githubusercontent.com/u/61831021?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ananthakrishnan Nair RS</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=akrish4" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/muthuannamalai12"><img src="https://avatars2.githubusercontent.com/u/64524822?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Muthu Annamalai.V</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=muthuannamalai12" title="Documentation">π</a></td>
<td align="center"><a href="https://github.com/chetak123"><img src="https://avatars1.githubusercontent.com/u/53306550?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ayushman</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=chetak123" title="Code">π»</a></td>
<td align="center"><a href="https://www.linkedin.com/in/tusharnankani"><img src="https://avatars1.githubusercontent.com/u/61280281?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tushar Nankani</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=tusharnankani" title="Code">π»</a></td>
</tr>
<tr>
<td align="center"><a href="https://bandism.net/"><img src="https://avatars.githubusercontent.com/u/22633385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ikko Ashimine</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=eltociear" title="Documentation">π</a></td>
<td align="center"><a href="https://uknowwhoim.me/"><img src="https://avatars.githubusercontent.com/u/51323747?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sidharth Ajithkumar</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=UKnowWhoIm" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/samsheff"><img src="https://avatars.githubusercontent.com/u/228820?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam Sheffres</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=samsheff" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/Rudy2401"><img src="https://avatars.githubusercontent.com/u/19256040?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rushi Dolas</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=Rudy2401" title="Code">π»</a></td>
<td align="center"><a href="https://github.com/mostlyvirtual"><img src="https://avatars.githubusercontent.com/u/2424140?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mostlyvirtual</b></sub></a><br /><a href="https://github.com/gautamkrishnar/socli/commits?author=mostlyvirtual" title="Code">π»</a></td>
</tr>
</tbody>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
### Bugs
If you are experiencing any bugs, donβt forget to open a [new issue](https://github.com/gautamkrishnar/socli/issues/new).
### Error Solving
If you encounter "AttributeError: 'module' object has no attribute 'SSL ST INIT'
```
sudo pip uninstall pyopenssl
sudo pip install pyopenssl or sudo easy_install pyopenssl
```
### Thanks
* Thanks to all the existing users of SoCLI.
* Thanks to all upvoters and followers on reddit.
* [impress that girl in the Starbucks by browsing SO with your CLI app XD XD](https://www.reddit.com/r/programmingcirclejerk/comments/4pwil4/impress_that_girl_in_the_starbucks_by_browsing_so/) by [insane0hflex](https://www.reddit.com/user/insane0hflex). Thanks for the post π
* Special thanks to people who wrote about SoCLI on their blogs and websites:
* [wykop.pl](http://www.wykop.pl/wpis/18286681/python-stackoverflow-interfejs-bo-sciaga-musi-byc-/)
* [memect.com](http://forum.memect.com/blog/thread/py-2016-06-26/)
* [pseudoscripter](https://pseudoscripter.wordpress.com/2016/06/28/socli-stack-overflow-command-line-client/)
* [b.hatena.ne.jp](http://b.hatena.ne.jp/entry/s/github.com/gautamkrishnar/socli)
* [jericson.github.io](http://jericson.github.io/2016/08/25/long_tail_docs.html)
* [The really big list of really interesting Open Source projects](https://medium.com/@likid.geimfari/the-list-of-interesting-open-source-projects-2daaa2153f7c#.6qm1v3ioa)
* [Ostechnix](http://www.ostechnix.com/search-browse-stack-overflow-website-commandline/)
* [lamiradadelreplicante.com](lamiradadelreplicante.com/2017/04/17/socli-navegando-por-stack-overflow-sin-salir-de-la-terminal)
* [dou.ua](https://dou.ua/lenta/digests/python-digest-13/)
* Tweets:
* [@cyb3rops](https://twitter.com/cyb3rops/status/747380776350650368)
* [@pythontrending](https://twitter.com/pythontrending/status/745635512803819521)
* Thanks to my favourite IDE JetBrains PyCharm β€οΈ π
<img src="https://cloud.githubusercontent.com/assets/8397274/16355101/edb3b98a-3aca-11e6-8db5-5f54cd4b9969.png" width=80px>
### Sponsors
Sponsor SoCLI on [Open Collective](https://opencollective.com/socli):
* Thanks [Steven Reubenstone](https://www.collaborizm.com/profile/1) for contributing $5 for the issue [#22](https://github.com/gautamkrishnar/socli/issues/22)
### Liked it?
Hope you liked this project, don't forget to give it a star β
%prep
%autosetup -n socli-7.3
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-socli -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 7.3-1
- Package Spec generated
|