mirror of
https://github.com/Death916/c2cscrape.git
synced 2026-04-10 03:04:40 -07:00
added time print during sleep periods
This commit is contained in:
parent
ac2235e532
commit
ed923045ad
2 changed files with 5 additions and 0 deletions
3
requirements.txt
Normal file
3
requirements.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
beautifulsoup4==4.12.2
|
||||
requests==2.31.0
|
||||
schedule==1.2.0
|
||||
|
|
@ -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...")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue