Can I transfer call-log data from my phone to my PC automatically?

I work from home and I have a spreadsheet tracking all the stats from incoming calls to my work number.
Currently I manually input the incoming call number, time, and length of call and I have a python script that adds those details into the relevant areas of my spreadsheet, I’m hoping to automate the entire process and I did a quick search to see if something like this existed but I did not find anything.

Is there an app- or is it possible with Python- to transfer call data from my Pixel 5 to my PC after each call? Or, if it isn’t able to be triggered after each disconnect, a script that when manually ran can transfer all calls that haven’t been transferred yet?