import sys from sniper import Sniper class CLISniper(Sniper): UPDATE_MESSAGE = "The detected accommodation page is different to the previous one, indicating a possible change in application status! Please check the accommodation page as soon as possbible!" def on_change(self): print(self.UPDATE_MESSAGE) def on_same(self): print("No change from last check...", file=sys.stderr) def main(): print("Now running Accommodation sniper...", file=sys.stderr) sniper = CLISniper() sniper.loop() if __name__ == "__main__": main()