/python-spider-for-weibo

Primary LanguageJupyter NotebookGNU Lesser General Public License v2.1LGPL-2.1

python-spider-for-weibo

usage

example for request data

cd spider\ for\ python/weibo

sh spider.sh 

or

cd spider\ for\ python/weibo

python weiboComments.py -h

python weiboComments.py -u 13xxxxxx767 -p ****** -m 2 -l "https://www.weibo.com/7293062537/ItJAm72t7?filter=hot&root_comment_id=0&type=comment" -t pc -o result_0329

example for analysis data

cd spider\ for\ python/weibo

python vis.py -h    

python vis.py -i pkl/comments_1585471431.pkl -o results 

or

cd spider\ for\ python/

jupyter notebook

open the "Mycode.ipynb"