we used this script
https://github.com/tshrinivasan/tools-for-wiki/tree/master/pdf-upload-commo…
to upload some 2000 public domain tamil books to commons.
Explore the batch uploading to commons.
If it is not apt for you, I can help to customize this script.
Regards,
T. Shrinivasan