diff options
author | bloodstalker <thabogre@gmail.com> | 2018-03-29 19:10:24 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-03-29 19:10:24 +0000 |
commit | 33a4fff8c5856e9be28e649c9d0c2fa1714a738f (patch) | |
tree | 42db2ecbb45462b2906aec79e5da849d8af3e98a | |
parent | update (diff) | |
download | kaminokumo-33a4fff8c5856e9be28e649c9d0c2fa1714a738f.tar.gz kaminokumo-33a4fff8c5856e9be28e649c9d0c2fa1714a738f.zip |
update
-rwxr-xr-x | kaminokumo | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -34,14 +34,14 @@ def mrg(url): length = len(res[7].text.split(",")) for split in res[7].text.split(","): if length == 1: - if split.find("minutes"): - print("hey, wer'e up") + if split.find("minutes") != -1: + print("mg") return True ############################################################################### def premain(argparser): signal.signal(signal.SIGINT, SigHandler_SIGINT) - url = json.load(open("./data.json")) + url = json.load(open("/home/bloodstalker/extra/kaminokumo/data.json")) mrg(url["url"]) def main(): @@ -55,9 +55,7 @@ def main(): shell = code.InteractiveConsole(variables) shell.interact(banner="DEBUG REPL") else: - while True: - premain(argparser) - sleep(600) + premain(argparser) if __name__ == "__main__": main() |