append input check

This commit is contained in:
lesander 2020-11-11 13:44:52 +01:00 committed by GitHub
parent 280969e9c8
commit 492561ba87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -802,8 +802,8 @@ def scraper(**kwargs):
exit(1)
urls = []
for line in open("input.txt"):
if line.lstrip().startswith("#"):
for line in open("input.txt", newline="\r\n"):
if line.lstrip().startswith("#") or line.strip() == "":
continue
urls.append(line.strip())