Skip to content
프로젝트

소개

zhihu.com용 웹 스파이더

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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

[email protected]

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

  1. Download the code
  2. Run init.sql to set up datebase and insert initial data.
  3. Find out your cookie of zhihu.com throught browser's developer tool.
  4. Modify config.ini
  5. Use python question.py to scrpy questions from zhihu.com
  6. Use python topic.py to 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.

관련 프로젝트 살펴보기

불러오는 중…