プロジェクト
GitHubで見る
MorganZhang100/zhihu-spider
概要
zhihu.com用のウェブスパイダー
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルzhihu-spider
A web spider for zhihu.com, which is used for ZhihuHot.
This spider can scrape question & topic data from zhihu.com.
Author
I'm Morgan Zhang, a graduate computer science student in University of San Francisco.
My another tool
See my another command line tool line here, which can tell you the amount of lines and files under current directory.
Why I made zhihu-spider
Coding for fun as well as learn Python.
Contact Information
Run it
What do you need to run it
- Python 2.7.6 (Maybe it work for other versions.)
- MySQL
- BeautifulSoup
How to run it
- Download the code
- Run init.sql to set up datebase and insert initial data.
- Find out your cookie of zhihu.com throught browser's developer tool.
- Modify config.ini
- Use
python question.pyto scrpy questions from zhihu.com - Use
python topic.pyto scrpy topics from zhihu.com
Warning
You can change thread amount in config.ini to make this spider run faster.
But your IP may be blocked from zhihu.com if you connect to zhihu.com too frequently.
You'd better use proxy when you use multi thread mode.
License
The MIT license.
関連プロジェクトを探す
読み込み中…