While downloading a Hindi course (Complete Hindi Course (audio) - by INDIAN_YOGI - Memrise), something happened again (the
Scraping item 337 of 1278
Traceback (most recent call last):
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\response.py”, line 438, in _error_catcher
yield
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\response.py”, line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\http\client.py”, line 459, in read
n = self.readinto(b)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\http\client.py”, line 503, in readinto
n = self.fp.readinto(b)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\socket.py”, line 704, in readinto
return self._sock.recv_into(b)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\ssl.py”, line 1241, in recv_into
return self.read(nbytes, buffer)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\ssl.py”, line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [WinError 10054] The existing connection was forcibly terminated by the remote host
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py”, line 753, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\response.py”, line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\response.py”, line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\contextlib.py”, line 135, in exit
self.gen.throw(type, value, traceback)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\response.py”, line 455, in _error_catcher
raise ProtocolError(“Connection broken: %r” % e, e)
urllib3.exceptions.ProtocolError: (“Connection broken: ConnectionResetError(10054, ‘The existing connection was forcibly terminated by the remote host’, None, 10054, None)”, ConnectionResetError(10054, ‘The existing connection was forcibly terminated by the remote host’, None, 10054, None))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Program Files (x86)\Memento_Windows_10_64-bit_v0.5\helper_scripts\scrape_memrise.py”, line 74, in
course.autoScrape(destination, minLevel, maxLevel, skipAudio, skipMnemonics)
File “C:\Program Files (x86)\Memento_Windows_10_64-bit_v0.5\helper_scripts\MemriseCourse.py”, line 369, in autoScrape
self.buildSeedbox(skipAudio, skipMnemonics)
File “C:\Program Files (x86)\Memento_Windows_10_64-bit_v0.5\helper_scripts\MemriseCourse.py”, line 263, in buildSeedbox
open(join(self.courseDir, “assets”, “audio”, audioName), “wb”).write(requests.get(audio[“url”]).content)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py”, line 76, in get
return request(‘get’, url, params=params, **kwargs)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py”, line 61, in request
return session.request(method=method, url=url, **kwargs)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py”, line 542, in request
resp = self.send(prep, **send_kwargs)
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py”, line 697, in send
r.content
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py”, line 831, in content
self._content = b’’.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b’’
File “C:\Users\jakub\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\models.py”, line 756, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: (“Connection broken: ConnectionResetError(10054, ‘The existing connection was forcibly terminated by the remote host’, None, 10054, None)”, ConnectionResetError(10054, ‘The existing connection was forcibly terminated by the remote host’, None, 10054, None))