alexgand / springer_free_books

Python script to download all Springer books released for free during the 2020 COVID-19 quarantine
GNU General Public License v3.0
1.65k stars 367 forks source link

Download doesn't complete #33

Closed goncaloperes closed 4 years ago

goncaloperes commented 4 years ago

Mine is stopping at 63% (255/407).

Traceback (most recent call last):
  File "main.py", line 64, in <module>
    myfile = requests.get(new_url, allow_redirects=True)
  File "C:\Users\...\venv\lib\site-packages\requests\api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "C:\Users\...\venv\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Users\...\venv\lib\site-packages\requests\sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\...\venv\lib\site-packages\requests\sessions.py", line 683, in send
    r.content
  File "C:\Users\...\venv\lib\site-packages\requests\models.py", line 829, in content
    self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
MemoryError

Any guidance here?

victormm2000 commented 4 years ago

How did you reach that point?? I've just run the main.py file but it doesn't find module requests