springer_free_books
springer_free_books copied to clipboard
HTTP Error 404 Not Found but I was able to manually download spreadsheet
~/repos/springer_free_books$ python3 main.py
Traceback (most recent call last):
File "main.py", line 37, in
Requirement already satisfied: pandas in /home/ddarden/.local/lib/python3.8/site-packages (0.24.2) Requirement already satisfied: python-dateutil>=2.5.0 in /home/ddarden/.local/lib/python3.8/site-packages (from pandas) (2.8.1) Requirement already satisfied: numpy>=1.12.0 in /home/ddarden/.local/lib/python3.8/site-packages (from pandas) (1.16.6) Requirement already satisfied: pytz>=2011k in /home/ddarden/.local/lib/python3.8/site-packages (from pandas) (2019.3) Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.5.0->pandas) (1.14.0)
Springer had updated the Excel file with a different name, but the Python script tried to download from the old link; therefore the error you encountered. Alex has fixed the link issue (see #85). Try downloading/cloning the repo again.
Still didn't work. I used git fetch to redownload it and got the same issue. I think I'm done with the python mess. I just used the spreadsheet and created the url's via a concat function and used wget -O to download them.
After git fetch
, did you git merge
? If you didn't, it wouldn't be in your working directory and therefore you were still running the older script. I suggest git pull
command rather than git fetch
. But beware that this would work smoothly if you hadn't modified the code in the working directory. In my opinion, the best way is to start off with a clean slate by issuing git clone
or download the zip in GitHub. This would have saved you all the trouble.
In fact, I did suggest to you to try downloading/cloning the repo again in my previous post.