Add more debug logs

This commit is contained in:
Gabriel Augendre 2019-06-01 21:20:32 +02:00
parent 698747b9bc
commit ffe69313b1

View file

@ -311,9 +311,13 @@ def isbn_api(request, isbn):
year = None year = None
editor = None editor = None
extra_info = decitre_soup.select('.informations-container') extra_info = decitre_soup.select('.informations-container')
logger.debug('raw extra_info')
logger.debug(extra_info)
if not extra_info: if not extra_info:
logger.debug('#fiche-technique') logger.debug('#fiche-technique')
extra_info = decitre_soup.select('#fiche-technique') extra_info = decitre_soup.select('#fiche-technique')
logger.debug('raw extra_info fiche technique')
logger.debug(extra_info)
if extra_info: if extra_info:
extra_info = extra_info[0].get_text(strip=True) extra_info = extra_info[0].get_text(strip=True)