RPC connection via tor, remotely get blockchain from my Umbrel

A cry for help!

I’d like to use python to access my Umbrel’s Bitcoin node. From this, I understand it should be possible via Tor; is this correct?

The below works for me:

import requests
def get_tor_session():
    session = requests.session()
    # Tor uses the 9050 port as the default socks port
    session.proxies = {'http':  'socks5://127.0.0.1:9050',
                       'https': 'socks5://127.0.0.1:9050'}
    return session
    
session = get_tor_session()

print(session.get("http://httpbin.org/ip").text)
print(requests.get("http://httpbin.org/ip").text)

But when I add my Umbrel bitcoin .onion address it fails:

print(session.get("http://myTorAddress.onion:8333").text)
print(requests.get("http://myTorAddress.onion:8333").text)

ConnectionError: SOCKSHTTPConnectionPool(host='myTorAddress.onion', port=8333): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x0000017FD70B2470>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

Does anyone have any pointers?

Do I need the P2P (Tor) or RPC (Tor) menu option in the Bicoin apps “connect” dialogue box?

Is what I’m doing intended to be possible?

All I want to do is copy the block information (headers+coinbase) from my umbrel to my pc. Or download it all and I can decant what I want locally. Is there an easier way than above? Perhaps one of the other Apps has a “download” helper UI?

Thank you

Should the block files be visible via the Files Browser app, does anyone know?