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 366 forks source link

Generate human friendly error message #93

Closed chaosAD closed 4 years ago

chaosAD commented 4 years ago

I made 2 improvements:

  1. Added some code lines so that when the link to the Springer Excel file is broken, it generates a human friendly message with one extra info. This may prevent misunderstanding (#89 and #85) and can help user understand the problem encountered by printing out the faulty URL.
  2. Reduced the call to requests.get()