itispaleocapa / paleobooks

Repository per il progetto paleobooks (app libri usati esperia)
GNU General Public License v3.0
2 stars 0 forks source link

Amazon scaper improvement and fixes #18

Closed cristianlivella closed 2 years ago

cristianlivella commented 3 years ago

For the school year 2021/2022, Amazon API provides the complete section names, therefore it is no longer necessary to concatenate the branch code to the name.

With the changes in this PR, the branch code is concatenated only if the length of the section name is less than 2.

In addition, I identified the case of a book with an invalid ISBN code (AIE006), which was causing the process to fail. I added a check to skip books with an ISBN that doesn't have 13 characters, and informs the user if there are any.