Bitcoin Forum
November 09, 2024, 10:54:20 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Script summarizing node data from bitnodes.com API  (Read 312 times)
weex (OP)
Legendary
*
Offline Offline

Activity: 1102
Merit: 1014



View Profile
August 26, 2015, 06:04:12 AM
Last edit: August 26, 2015, 06:24:13 AM by weex
 #1

Coded this because I wanted to be able to sort through IP addresses of nodes to see if there were any patterns or obvious number-inflating type activites. It pulls the API from bitnodes.com so if you want to summarize some data from there, it's a good starting point.

https://github.com/weex/bitcoin-node-stats

From the readme:

Pulls API data and summarizes sync'd node counts

This script pulls json data from the bitnodes.com API and does some simple stats on it. This was created to get a better view on the XT vs Core nodes count and bases stats on nodes being synchronized (i.e. being on the latest or previous block) rather than just being present.

Sample output:

Max block height: 371549
Total syncd nodes: 5773
Total syncd XT nodes: 932

The script also saves the downloaded json as lastraw.json and a comma separated values list of nodes with IP, Useragent, and block height as list_nodes.csv.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!