Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details β†’
Socket
Book a DemoInstallSign in
Socket

socli

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socli - npm Package Compare versions

Comparing version
6.9
to
7.0
+4
-0
CHANGELOG.rst
SoCLI Changelog
================
Release 7.0
---------------------------
* Fixes for google search
Release 6.9

@@ -5,0 +9,0 @@ ---------------------------

+6
-2
Metadata-Version: 2.1
Name: socli
Version: 6.9
Version: 7.0
Summary: Stack overflow command line interface. SoCLI allows you to search and browse stack overflow from the terminal.

@@ -108,3 +108,3 @@ Home-page: https://www.github.com/gautamkrishnar/socli

##### 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 automaticially fetch the data.
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

@@ -282,2 +282,6 @@ socli -u

</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>
</tr>
</table>

@@ -284,0 +288,0 @@

@@ -98,3 +98,3 @@ # SoCLI [![PyPI](https://img.shields.io/pypi/v/socli?color=brightgreen) ![PyPI Downloads](https://img.shields.io/pypi/dm/socli)](https://pypi.org/project/socli/) [![Build Status](https://travis-ci.com/gautamkrishnar/socli.svg?branch=master)](https://travis-ci.com/gautamkrishnar/socli) [![Collaborizm](https://img.shields.io/badge/Collaborizm-Join%20Project-brightgreen.svg)](https://www.collaborizm.com/project/S1cbUui6) [![Gitter Chat](https://badges.gitter.im/socli-community/Lobby.svg)](https://gitter.im/socli-community/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

##### 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 automaticially fetch the data.
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

@@ -272,2 +272,6 @@ socli -u

</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>
</tr>
</table>

@@ -274,0 +278,0 @@

Metadata-Version: 2.1
Name: socli
Version: 6.9
Version: 7.0
Summary: Stack overflow command line interface. SoCLI allows you to search and browse stack overflow from the terminal.

@@ -108,3 +108,3 @@ Home-page: https://www.github.com/gautamkrishnar/socli

##### 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 automaticially fetch the data.
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

@@ -282,2 +282,6 @@ socli -u

</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>
</tr>
</table>

@@ -284,0 +288,0 @@

@@ -87,10 +87,10 @@ """

question_title = result.find("h3").get_text().replace(' - Stack Overflow', '')
# Instant answers will raise IndexError here
question_desc = result.find("div", recursive=False).find("div",recursive=False) \
.findAll("div",recursive=False)[1].find("span",recursive=False) \
.findAll("div",recursive=False)[1].findAll("div",recursive=False)[1] \
.findAll("span",recursive=False)[1].getText()
if question_desc == "": # For avoiding instant answers
raise NameError # Explicit raising
question_url = result.find("a").get("href") # Retrieves the Stack Overflow link
question_url = fix_google_url(question_url.lower())
if question_url is None:

@@ -102,6 +102,4 @@ i = i - 1

i += 1
except NameError:
except (NameError, AttributeError, IndexError):
continue
except AttributeError:
continue

@@ -118,3 +116,3 @@ # Check if there are any valid question posts

:param soup
extacts comments on the answers
extracts comments on the answers
"""

@@ -211,3 +209,3 @@ comments_list = []

try:
soup.find_all("div", class_="question-summary")[0] # For explictly raising exception
soup.find_all("div", class_="question-summary")[0] # For explicitly raising exception
tmp = (soup.find_all("div", class_="question-summary"))

@@ -214,0 +212,0 @@ tmp1 = (soup.find_all("div", class_="excerpt"))

@@ -1,1 +0,1 @@

__version__ = '6.9'
__version__ = '7.0'