Thank you!
I can confirm that this works with TapoC520WS
It requires the addition of the libraries you mentioned for JSON and JSON::Parse but once that was done, it worked.
As for @pat2 who said they could not install the second library using "apt install libjson-parse-perl" , there is always the option of installing via cpan
Using cpan requires make so if you do not already have it,
I cannot Zoom the Tapo C520WS but I can use the Wake, Sleep (Privacy Mode), Pan and Tilt and that is all I need.
Thanks again for sharing.
For anyone interested, there is a stand-alone, python-based module called pytapo
https://github.com/JurajNyiri/pytapo
that also allows you to download the files from a camera's MicroSD card WITHOUT first storing them on the cloud (ie keeping it secure on your premises only). See the sample script in the "Experiments" folder.