Giter Club home page Giter Club logo

activity-tracker-on-zhihu's Introduction

Activity-Tracker-On-Zhihu

This is a web scrapper dedicated to analyse activity data from zhihu.com, which then transfer into useful models and graphs for displaying purpose. It is meant to cause no harm to the website, if any inappropriate uses are detected, the repository would be archieved immediately.

The software would be designed as an exe to run on window starts, and perform automatically in background - as long as the host stays online.

Program Structure

Use Case Analysis

Suppose that the Web Scraper has only one type of user (operator), and the following business process:

An operator may:

  • Retrieve the target list from Google Sheet to a JSON file.
  • Search through the target list once every six hours to check its activity.
  • Output a list of the target list's today pins (later).
  • Write the newest activity log (a JSON file) to the Google Sheet.
  • Display a warning dialog if any person from the target list is missing for over 5 days.

Use Case Description

Use Case Name: Retrieve the target List
Actor: Operator
Prerequisite: When the system starts.
Description:

  1. The system automatically retrieve the target list from the Google Sheet through the use of Google Cloud Service Account (important details retrieved in source.json).
  2. The URL and name is then cleansed and saved in a JSON file called database.json.
  3. The normal flow is then resumed.

Use Case Name: Search through the target list
Actor: Operator
Prerequisite: When the system starts OR the timer runs off.
Description:

  1. The URL is retrieved from the source.json.
  2. The bot goes through every single URL of the list, to retrieve the date of the latest activity, with the latest today's pin if possible.
  3. The normal flow is then resumed.

Use Case Name: Output a list of today's pins
Actor: Operator
Description:

  1. The today pins from the target list is generated into a list.
  2. The list is then displayed as one pop-up window.
  3. The normal flow is then resumed.

Use Case Name: Write the newest activity log
Actor: Operator
Description:

  1. The retrieved date is written to the Google Sheet.
  2. The normal flow is then resumed.

Use Case Name: Display warning dialogs
Actor: Operator
Description:

  1. The system automatically retrieve the calculated answer form the Google Sheet again.
  2. If the response is negative, the system will then display a warning dialog that the target has been disappeared for more than a number of days.
  3. The system is then return to its count-down status.

activity-tracker-on-zhihu's People

Stargazers

 avatar

Watchers

 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.