Skip to content

Instantly share code, notes, and snippets.

View BitWizJason's full-sized avatar

theDeutschman BitWizJason

View GitHub Profile
@BitWizJason
BitWizJason / extract_top_peers.py
Created November 16, 2021 01:54 — forked from bogatyy/extract_top_peers.py
Extract top peers
from collections import defaultdict
GETH_LOGFILE = 'geth-log.txt'
def extract_parameter(source_str, before_str, after_str):
start_pos = source_str.find(before_str) + len(before_str)
return source_str[start_pos:source_str.find(after_str, start_pos)]