

self hosting is all about whats right for you, as said, lots here use cloudflare. I would never use cloudflare as I like to mess up my stuff on my own, not have some company piss it up and have to wait for them to fix it.
I would see plex as the half way house of self hosting, you run a service that someone else has the control over.





Have a look at jq, a shell tool that can pass json and output in any way you want.
Or yes a python script will do that too