I wrote a statistics page of asciinema.org/explore

#1

Hi, I wrote a statistics page of Watch -> All Public.

Url: https://goreliu.github.io/asciinema_statistics/

Here is a screenshot:

And there are some tools in it.

bin/playrandom: play a random asciinema cast from asciinema.org in terminal

bin/generate: generate index.html

bin/update: pull new data from asciinema.org and update index.html

bin/autoupdate: run bin/update every 600s


bin/savetosqlite: save data to a sqlite3 format database file(data/asciinema.db)

$ ./bin/savetosqlite
saved data to /home/goreliu/asciinema_statistics/data/asciinema.db
$ sqlite3 data/asciinema.db
SQLite version 3.28.0 2019-04-16 19:49:53
Enter ".help" for usage hints.
sqlite> .schema data
CREATE TABLE data (id int, os varchar(20), shell varchar(20), term varchar(50), user varchar(50));
sqlite> select count(*) from data where os = "Linux" and shell = "zsh";
3449
sqlite> select count(*) from data where os = "macOS" and shell = "zsh";
3265

I hope someone will be interested in it.

Source code: https://github.com/goreliu/asciinema_statistics

Thanks.

1 Like