Forgot to add this -.-
This commit is contained in:
parent
62cf93bd52
commit
accf84401f
2 changed files with 5 additions and 2 deletions
|
@ -19,11 +19,9 @@ def fact(inp, say=False, nick=False):
|
|||
|
||||
response = soup.find('a', {'class': 'surprise'})
|
||||
link = response['href']
|
||||
#fact = response.contents[0]
|
||||
fact = ''.join(response.find(text=True))
|
||||
|
||||
if fact:
|
||||
print fact
|
||||
fact = http.unescape(fact.decode("utf-8")).strip()
|
||||
break
|
||||
else:
|
||||
|
|
Reference in a new issue