Skip to content

uvletter/bubble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bubble

Usage

Be sure you have installed Python3, pip and virtualenv in you computer, then

git clone https://github.com/ElevenKeys/bubble.git
cd bubble
virtualenv env
source env/bin/activate
pip3 install -r requirements.txt

Now the environment is OK.

Configure the micro in the header of ant.py, slave.py and bubble.py, including the IP and anthentication of the Redis and MongoDB server, and the cookies of Zhihu anthentication.

If you want to crawl the topics of Zhihu, just run the master.py and slave.py in the background, waiting for several hours and the topic data wll be collected and stored in MongoDB.

If you want to see the topic presentation,

export FLASK_APP=bubble.py
flask run

visit the page in http://localhost:5000/bubble, and search your interesting topic.

This is the impression website bubbles.

About

A spider and presentation page for Zhihu topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published