2021-05-29 15:28:08 +00:00
|
|
|
from alive_progress import alive_bar
|
|
|
|
import subprocess, URLs, sys
|
2021-05-27 19:23:23 +00:00
|
|
|
print("Infinitely running the file. (To stop this, add a file called \"sotp\" in the working directory.)")
|
2021-05-29 15:28:08 +00:00
|
|
|
with alive_bar() as bar:
|
|
|
|
while True:
|
|
|
|
try:
|
|
|
|
open("sotp")
|
|
|
|
except Exception:
|
|
|
|
pass
|
|
|
|
else:
|
|
|
|
print("sotpping")
|
|
|
|
sys.exit(0)
|
|
|
|
try:
|
|
|
|
URLs.main()
|
|
|
|
except URLs.NonexistentUrl as ename:
|
|
|
|
print("NonexistentUrl - %s"%ename)
|
|
|
|
except Exception as ename:
|
|
|
|
print(f"Error - {ename}")
|
|
|
|
bar()
|