Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bordalix/bitdiffhistory
https://github.com/bordalix/bitdiffhistory
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bordalix/bitdiffhistory
- Owner: bordalix
- License: mit
- Created: 2023-08-23T09:44:41.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-24T15:32:18.000Z (about 1 year ago)
- Last Synced: 2023-10-24T16:39:14.377Z (about 1 year ago)
- Language: Ruby
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bitdiffhistory
Ruby script that scrapes https://btc.com/stats/diff and produces a CSV file.
Each line of this file has the following columns:
- **block_height**: block height (aka number)
- **block_timestamp**: when this block was mined
- **difficulty_absolute**: absolute value of difficulty
- **difficulty_change_percentage**: difficulty change in percentage
- **bits**: difficulty represented as bits
- **time_between_blocks**: average time between blocks for last 2016 blocks
- **hashrate_pretty**: easy to read hashrate value
- **hashrate_units**: hashrate absolute value
- **difficulty_abs_change**: absolute change in difficulty
- **hashrate_u_abs_change**: absolute change in hashrate### Usage
Install necessary gem:
```
gem install nokogiri
```Run script:
```
./scrape.rb > export.csv
```Google sheet (as of August 23, 2023):
https://docs.google.com/spreadsheets/d/1-bkLvQFz3dUvDmf_EuNip0BUzPklwUippvlgyqALp1Q/edit?usp=sharing