Giter Club home page Giter Club logo

weibo_spider's Introduction

weibo_spider

运行环境:Python3.6+Django2.0+mongoDB+Bpptstap+Echart

通过输入微博的url 和用户的Cooike值 来进行爬取,进行简单清洗生成那条微博的转发关系分析图。关系图用的是Echart的引力斥力图, 节点数据较少时正常,当节点较多时会出现图片动画较卡的情况。

代理ip

proxies = {""} 在代码中指定一下代理IP地址

转发内容分析

首先对转发内容进行分析生成词云

使用jieba对转发内容进行分词,再使用wordcloud生成词云。(分词结果还不是很理想 -- 有些废词没有过滤掉) 使用了百度的情感分析api 访问速度有点慢开了多进程,进行试验,好像速度有点提高哈哈。。。。

网站一共4个页面,数据都存在了Mongodb,再进行新一次爬虫是自动删除上一次的数据记录。

weibo_spider's People

Contributors

fenrao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lxngoddess5321

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.