Update utf8 errro

This commit is contained in:
sigvartmh
2017-05-16 13:20:20 +02:00
parent 6e9104712c
commit 0b54e6887b
2 changed files with 3 additions and 2 deletions

View File

@@ -146,9 +146,10 @@ class itslearning_scraper():
except:
filename = title
self.failure += 1
print("File created with name:",filename)
filename = slugify(filename)
print("File created with name:",filename)
filename = os.path.join(os.path.abspath(os.path.curdir),filename)
print("File created with path:",filename)
with open(filename, 'wb') as f:
for chunk in r.iter_content(chunk_size=1024):
if chunk: