Need custom checking if a good file is downloaded.
Or add after and before methodes?
with filename.open(mode='r', encoding="utf-8") as reader:
check = reader.readline(14)
if check == "<!DOCTYPE html": # if only the html file "Invalid Attachment specified." was downloaded
download_failed_list.append(at_id)
else:
download_succeed_list.append(at_id)
Need custom checking if a good file is downloaded. Or add after and before methodes?