aboutsummaryrefslogtreecommitdiff
path: root/mkbinder.py
diff options
context:
space:
mode:
authorAnthony Wang2022-01-22 22:50:45 -0600
committerAnthony Wang2022-01-22 22:50:45 -0600
commitc4bec9dc8723e4e509deec7bd83abadca28ce30c (patch)
treeaa371c22978549730a78d45dd3a8863f0125e93d /mkbinder.py
parent88462d61a8117b8b344653b179f98fe658f5ad8a (diff)
Save failed downloads to file
Diffstat (limited to 'mkbinder.py')
-rwxr-xr-xmkbinder.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mkbinder.py b/mkbinder.py
index 6617fd8..587701a 100755
--- a/mkbinder.py
+++ b/mkbinder.py
@@ -16,6 +16,8 @@ parser.add_argument('--force', '-f', help = 'force download all links', action='
args = parser.parse_args()
+failed = []
+
for category in os.listdir('Links'):
print('🔍 Examining: ' + category)
os.makedirs(category, exist_ok=True)
@@ -44,3 +46,8 @@ for category in os.listdir('Links'):
exit()
except:
print('😱 Error when printing')
+ failed.append(name)
+
+# Output failed downloads
+print(failed)
+print(failed, file=open('failed', 'w'))