Skip to content

Commit ab40892

Browse files
committed
Update README.rst
1 parent 0f0340a commit ab40892

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

README.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
zhihu-python:获取知乎信息
2+
============================
3+
4+
介绍
5+
----
6+
7+
zhihu-python 采用 python2.7 编写,用来方便地获取知乎上各种内容的信息,并且可以方便地将答案备份导出为 txt 或 markdown 文件。
8+
由于知乎官方没有提供 api,所以有了此项目地存在。
9+
10+
依赖
11+
-----
12+
13+
- 使用 `Beautiful Soup 4 <http://www.crummy.com/software/BeautifulSoup/>`_ 解析 html 文档
14+
- 使用 `requests <https://github.com/kennethreitz/requests>`_ 处理 http 请求
15+
- 使用 `html2text <https://github.com/aaronsw/html2text>`_ 进行格式转换
16+
17+
没有的话可以使用 pip 安装:
18+
19+
.. code-block:: bash
20+
21+
$ pip install requests
22+
$ pip install beautifulsoup4
23+
$ pip install html2text
24+
25+
**注意** :如果同时安装了 python3 和 python2 , pip 命令可能默认安装的是 python3 版本的包,故需将上述命令中的 pip 换成
26+
pip2 (比如在我的Ubuntu上)。
27+
28+
快速开始
29+
---------
30+
31+
zhihu-python主要文件为zhihu.py
32+

0 commit comments

Comments
 (0)