BUB is a web-tool built in Python that downloads books from public libraries like Google-Books, and then uploads them to the Internet Archive and Wikimedia Commons with the help of IA-Upload tool.
The web-front code resides inside the /app directory. The /digi-lib contains the modules associated with each public library. The bot code is inside /bot directory.
Our code is maintained on github. We follow the same guidelines as the mediawiki coding conventions. For each public library, its associated module has to be present in /digi_lib and the config file should be set accordingly.