Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

# requirements
import requests, termcolor
import colorama


colorama.init()


requests = requests.Session()
Expand Down
4 changes: 3 additions & 1 deletion zhihu.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
import re, json, cookielib

# requirements
import requests, termcolor, html2text
import requests, termcolor, html2text, colorama
try:
from bs4 import BeautifulSoup
except:
Expand All @@ -74,6 +74,8 @@
By Luozijun (https://github.com/LuoZijun), 09/09 2015

"""
colorama.init()

requests = requests.Session()
requests.cookies = cookielib.LWPCookieJar('cookies')
try:
Expand Down