GithubHelp home page GithubHelp logo

tieba_memory's Introduction

Tieba_Memory

说明

本项目基于以下项目进行修改 Starry-OvO/aiotieba: Asynchronous I/O Client for Baidu Tieba✨

使用方法

  1. 安装依赖
pip install -r requirements.txt
  1. 配置文件 参考准备工作 - aiotieba
  2. 导出数据,
python export.py
  1. 分析数据,根据自己的需要修改main.py中的main函数
python main.py

todo

  • 获取自己近期的贴吧回复,并持久化存储
  • 对回复记录进行统计,
    • 生成“词云”图片
    • 生成“饼状图”图片(按照贴吧进行分类)
    • 可选择时间段生成图片
  • 导出自己的发帖记录
  • 使用Github Actions定时执行
  • 导出特定帖子的回复记录并进行一定的处理

Python异步编程

  • 参考: 异步编程入门教程 - aiotieba
  • await关键字的作用就是执行右侧的可等待对象,并让其当前所处的执行流程挂起以等待右侧的可等待对象给出结果。
  • async关键字的作用就是将一个函数声明为异步函数,添加了async标记的函数都会返回一个可等待对象。
  • 异步函数的执行结果是一个协程对象,协程对象可以被await关键字挂起。
  • 协程(Coroutine)就是可以在中途挂起和恢复执行的函数流程。调用异步函数main所得到的可等待对象main()就是一个协程。

参考链接

tieba_memory's People

Contributors

euds63 avatar youzi-nya avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

youzi-nya

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.