From bb57404bcd6fc020ba76fb168ff6e13f29da6830 Mon Sep 17 00:00:00 2001 From: Satoshi Nakamoto <65907137+SatoshiNakamotoBitcoin@users.noreply.github.com> Date: Thu, 21 Sep 2023 19:44:05 +0200 Subject: [PATCH] Update spvblock.py --- pybitblock/SPV/spvblock.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pybitblock/SPV/spvblock.py b/pybitblock/SPV/spvblock.py index ddb3fec..9c99f0a 100644 --- a/pybitblock/SPV/spvblock.py +++ b/pybitblock/SPV/spvblock.py @@ -3862,22 +3862,20 @@ def callGitBpytop(): #---------------------------------UTXOracle---------------------------------- def callGitUTXOracle(): try: + conn = """curl -s 'https://utxo.live/oracle/' | html2text | grep -E "Date" -A 77 | grep -v "Date"""" + a = os.popen(conn).read() clear() blogo() + closed() output = render( - "UTXORACLE", colors=['yellow'], align='left', font='tiny' + "utxoracle", colors=['yellow'], align='left', font='tiny' ) - if os.path.isdir ('utxoracle'): - print("...Reading UTXOSet...") - else: # Check if the file 'bclock.conf' is in the same folder - os.system("mkdir utxoracle && cd utxoracle && wget https://utxo.live/oracle/UTXOracle.py") - clear() - blogo() + print(output) - os.system(f"cd utxoracle && python3 UTXOracle.py") + print(a) input("\a\nContinue...") except: - menuSelection() + pass #---------------------------------Cashu---------------------------------- def callGitCashu(): if not os.path.isdir('Cashu'):