From ed923045ad003bf1ac49c798b921bdbcda540898 Mon Sep 17 00:00:00 2001 From: Death916 Date: Fri, 21 Feb 2025 02:25:41 -0800 Subject: [PATCH] added time print during sleep periods --- requirements.txt | 3 +++ src/c2cscrape.py | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..994dcb3 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +beautifulsoup4==4.12.2 +requests==2.31.0 +schedule==1.2.0 diff --git a/src/c2cscrape.py b/src/c2cscrape.py index c5ea35b..bcba18c 100644 --- a/src/c2cscrape.py +++ b/src/c2cscrape.py @@ -210,6 +210,8 @@ if __name__ == '__main__': # Keep main thread alive with minimal resource usage try: while True: + print("waiting for timer") + print("time is: ", datetime.datetime.now()) time.sleep(3600) # Check once per hour except KeyboardInterrupt: print("\nStopping scheduled downloads...")