Giter Club home page Giter Club logo

weibo_crawler's Introduction

WeiboCrawler

通过模拟登陆的方式抓取指定微博用户的微博内容,进行分析/可视化

Introduction

  • Python 2.X

Project framework

  • main.py:主函数
  • wap_weibo_crawler.py:模拟登陆新浪微博(wap站),无需验证码,静态爬取
  • sina_weibo.py:新浪微博类,其实例代表一个特定用户的新浪微博
  • content_parsing_tool.py:内容解析/信息提取
  • seed_user_db.py:数据库交互:种子用户(爬取目标用户)数据表

Todo

  • 优化对微博内容中存在的超链接的解析
  • 在获取页面时,小几率出现未能加载出微博内容的情况,导致漏掉部分微博
  • 提高图片抓取的准确率
  • 分组可见信息的提取
  • 转发信息的解析
  • 地理位置提取
  • 引入pd.DataFrame来作为保存微博条目的数据结构
  • matplotlib全局显示中文

  • 加入账号本身微博信息的提取
  • 原图/多图
  • 评论内容
  • 粉丝

  • 用户微博时间线的分布(还有待完善)
  • 24小时内,所有微博时间点分布的统计
  • 以所有微博为横轴,利用柱状图/散点图展示评论/点赞数量的分布
  • 饼图,展示各微博类型占比,纯文字/带图/转发
  • 微博客户端来源,官方客户端/网页/第三方客户端,饼图展示占比,时间线展示变迁

  • 加入数据库/MySQL
  • 建立一张数据表,存储一定数量的微博小号账号/密码信息,作为模拟登陆的入口,降低风险

weibo_crawler's People

Contributors

moaiweishui avatar

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.