If you want to pass results of a Dashboard elsewhere, you need to use a drilldown
See the Dashboard XML reference for more
Splunk will only send to a URL, however – so if you want it to go to a "custom python script", it will need to be accessible via URL
What does your "custom python script" do?
from User warren – Stack Overflow https://stackoverflow.com/questions/70603364/choose-one-result-in-splunk-table-query/73128088#73128088
via IFTTT