Statistic tools for twister network
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.3 KiB

2 years ago
# twister-stat ⠀
Statistic tools for twister network ⠀
## Blockchain crawler ⠀
Script written in python v2, that scans the blockchain and dump the data to the MySQL database. ⠀
Index contain: ⠀
- block number ⠀
- block hash ⠀
- time created ⠀
- usernames ⠀
### Configuration ⠀
line 5 - MySQL database ⠀
2 years ago
2 years ago
line 13 - blocks per step ⠀
2 years ago
2 years ago
line 31 - twister API ⠀
### Requirements ⠀
`apt install python2 python2-dev php-mysql mysql-server`
2 years ago
`pip2 install python-bitcoinrpc`
`pip2 install mysqlclient`
2 years ago
### Running ⠀
`python2 crawler/blockchain.py`
## Charts ⠀
Tools for the data dumped visualization written in PHP ⠀
2 years ago
![demo](https://raw.githubusercontent.com/twisterarmy/twister-stat/main/media/demo.png)
2 years ago
### Configuration ⠀
line 8 - MySQL database ⠀
### Requirements ⠀
2 years ago
`apt install php-fpm php-curl php-mysql mysql-server`
2 years ago
### Running ⠀
create new server instance ⠀
2 years ago
`cd twister-stat`
2 years ago
2 years ago
`php -S localhost:8081`
open in browser ⠀
`http://localhost:8081/index.php`
todo: ⠀
## Static dumps directory ⠀
https://github.com/twisterarmy/twister-stat/tree/main/dump ⠀
## Alternative languages ⠀
https://github.com/twisterarmy/cloud-server/blob/main/tool/crawler/blockchain.php