Skip to content
This repository has been archived by the owner on Jul 13, 2019. It is now read-only.

Commit

Permalink
改进 zhihu.py 增加 Py2 和 Py3 的兼容
Browse files Browse the repository at this point in the history
改进 zhihu.py 增加 Py2 和 Py3 的兼容
  • Loading branch information
xchaoinfo committed May 13, 2016
1 parent 716fc17 commit 8136460
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.jpg
*.png
.idea
cookies
5 changes: 4 additions & 1 deletion 001 zhihu/zhihu.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
- date : "2016.4.21"
'''
import requests
import cookielib
try:
import cookielib
except:
import http.cookiejar as cookielib
import re
import time
import os.path
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

欢迎大家一起来 pull request

0. **pull request 到 fuck-login-dev 分支**
0. pull request 尽量做到 Py2 和 Py3 版本的兼容。
1. 增加新的网站登录
2. 改进错误, Python版本的兼容
3. 增加新的功能。一个开发新功能的例子:
Expand Down

0 comments on commit 8136460

Please sign in to comment.