WarwickAccomSniper/cli_sniper.py

18 lines
573 B
Python
Raw Permalink Normal View History

2024-11-04 00:18:58 +00:00
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()