Skip to content

Commit 5e453db

Browse files
Update 0.5.2
- added visualization for hibernation
1 parent 8f0e2ed commit 5e453db

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

scrape.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from json import decoder
55
from os import path, mkdir, remove
66
from os.path import isfile
7+
from time import sleep
78

89
try:
910
from progress.bar import Bar
@@ -114,15 +115,22 @@ def main():
114115

115116
# start 60 second loop
116117
status("Hibernating for 60 seconds...")
118+
with Bar("Hibernating", max=60, fill=">", suffix="") as bar:
119+
for i in range(60):
120+
sleep(1)
121+
bar.next()
122+
123+
bar.finish()
124+
117125
print()
118-
threading.Timer(60, main).start()
126+
threading.Timer(0, main).start()
119127

120128

121129
if __name__ == '__main__':
122130

123131
AUTHOR = "SYRAPT0R"
124132
COPYRIGHT = "2019-2020"
125-
VERSION = "0.5.1"
133+
VERSION = "0.5.2"
126134

127135
# parse arguments
128136
keywords = None

0 commit comments

Comments
 (0)