We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abab9b8 commit 759bb91Copy full SHA for 759bb91
socli/search.py
@@ -84,8 +84,9 @@ def get_questions_for_query_google(query, count=10):
84
break
85
try:
86
question_title = result.find("h3").get_text().replace(' - Stack Overflow', '')
87
- question_desc = result.find("div", recursive=False).find_all("div", recursive=False)[1] \
88
- .find_all("span")[-2].get_text()
+ question_desc = result.find("div", recursive=False).find("div",recursive=False) \
+ .findAll("div",recursive=False)[1].find("span",recursive=False) \
89
+ .findAll("span",recursive=False)[1].getText()
90
if question_desc == "": # For avoiding instant answers
91
raise NameError # Explicit raising
92
question_url = result.find("a").get("href") # Retrieves the Stack Overflow link
0 commit comments