You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+41-3
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,23 @@
2
2
3
3
A command line tool for Twitch analytics. This is originally a group project of my class at school.
4
4
5
+
Here is an eaxmple web page generated by this program.
6
+
7
+

8
+
9
+
If you want to try this command line tool, you can go to [example](#example) part directry.
5
10
## Table of Contents
6
11
7
12
*[Backgournd](#background)
8
13
*[Installation](#installation)
9
14
*[Usage](#usage)
15
+
+[save-user](#save-user-command)
16
+
+[collect](#collect-command)
17
+
+[process](#process-command)
10
18
*[Example](#example)
11
19
+[[Opitional] Save ID and Secret](#optional-save-id-and-secret)
12
20
+[Collect Data](#collect-data)
21
+
+[Process Data](#process-data)
13
22
*[Guide for Developing This Tool](#guide-for-developing-this-tool)
14
23
*[Other Available Online Resources](#other-available-online-resources)
15
24
*[Contributors](#contributors)
@@ -41,6 +50,7 @@ Options:
41
50
42
51
Commands:
43
52
collect Collect data for analysis
53
+
process Process data and do visualization.
44
54
save-user Save user id and secret key in`secret.yaml`.
45
55
```
46
56
@@ -59,7 +69,7 @@ Options:
59
69
--help Show this message and exit.
60
70
```
61
71
62
-
### collect command
72
+
### collect Command
63
73
64
74
`collect` command is one of the most important command in this tool. It used to collect top games data and related streams data into csv files. Later, we can use these files to do data analysis.
65
75
@@ -77,6 +87,24 @@ Options:
77
87
--help Show this message and exit.
78
88
```
79
89
90
+
### process Command
91
+
92
+
This command is to process data and show analized results in figures.
93
+
94
+
```shell
95
+
Usage: twitchanal process [OPTIONS]
96
+
97
+
Process data and do visualization.
98
+
99
+
Options:
100
+
--debug Run in debug mode.
101
+
-d, --dir TEXT Data directory.
102
+
-t, --timestamp TEXT Data timestamp. Specify which csv file to use or the
103
+
program will use the latest one by default.
104
+
105
+
--help Show this message and exit.
106
+
```
107
+
80
108
## Example
81
109
82
110
### [Optional] Save ID and Secret
@@ -111,8 +139,18 @@ dataset
111
139
112
140
There suffix of the file name is a timestamp. It tells us when we collect the data. **But it is just a approximate time**. This tool uses the time of starting collect `top_games` as the timestamp for all data files. Since we do not need a accurate time to do data analysis. This is acceptable.
113
141
114
-
`top_games_xxxx.csv` contains the data of top games.
115
-
`game_streams_xxxx.csv` contains the data of a certain game stream.
142
+
-`top_games_xxxx.csv` contains the data of top games.
143
+
-`game_streams_xxxx.csv` contains the data of a certain game stream.
144
+
145
+
### Process Data
146
+
147
+
```shell
148
+
twichanal process [-d] [-t]
149
+
```
150
+
151
+
Program will create a web page and run on http://127.0.0.1:8050/
0 commit comments