This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)] | |