Io uso try except
per evitare errori, ma il mio terminale mostrano ancora l'errore, ma non il messaggio di registro:errore Scrapy: exceptions.ValueError: Mancare schema a richiesta URL:
raise ValueError('Missing scheme in request url: %s' % self._url)
exceptions.ValueError: Missing scheme in request url:
Come posso evitare questo errore quando Scrapy non hai ottenuto image_urls?
Per favore guidami, grazie mille.
try:
item['image_urls'] = ["".join(image.extract()) ]
except:
log.msg("no image foung!. url={}".format(response.url),level=log.INFO)
questo davvero fare cose interessanti. tnx –