def update_sbg(self): try: g = Google_Blacklist("malware") g.fetch_data() g = Google_Blacklist("black") g.fetch_data() print "Google SafeBrowsing Database- Update finished\n" self.config["p_logger"].info("umo module malwareScan - Google SafeBrowsing Database- Update finished") except: self.config["p_logger"].error('umo module malwareScan - Errors updating Malware and BlackList Google Safebrowsing Database')
from safebrowsing.prepare_db import Google_Blacklist # "malware" and "black" are valid options g = Google_Blacklist("malware") g.fetch_data() g = Google_Blacklist("black") g.fetch_data()