Does it have to be blockchain.com or can you switch to another wallet like Electrum? I had no success finding anything for the blockchain wallet, but I came across an old thread where someone created an Electrum forwarded script that worked back in 2013. I don't have the skills to go over the code, so I suggest that someone who knows what he is doing checks if this is safe to use and still works:
--snip--
I don't know if the code is safe (as in no malicious code), but i know won't work because the code is for Python 2 and Electrum 1.X.
For the security aspect, it store password of the wallet on plain text, which isn't best practice. At very least you need to make sure only root only can read/modify the file.