From 9e3f312342f812be85abf085ccc8ca2aaff59623 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Mon, 29 Nov 2021 23:48:35 +0100 Subject: [PATCH] Update ppi.py --- ppi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppi.py b/ppi.py index 9c10e05..9bc7488 100644 --- a/ppi.py +++ b/ppi.py @@ -265,7 +265,7 @@ def stalnConn(): #-----------------------------StatRanking-------------------------------- def ranConn(): try: - conn = """curl -s https://1ml.com/node?order=capacity | html2text | xargs -L 1 | grep -E "CAP" -A 7 | grep -v -E "CAP" | tr -d '*|\--'""" + conn = """curl -s 'https://1ml.com/node?order=capacity&json=true' | jq -C '.[]' | xargs -L 1 | tr -d '{|}' | grep -v -E "last_update|color|noderank" | sed 's/alias/Node/g'""" a = os.popen(conn).read() clear() blogo()