You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A thing you need to ask yourself before posting issue. Try it sometimes.
WHAT (Change logging)
WHY (Didn't mention)
Where (Easy to figure it out)
Until you post reasons, hypothesis, opinions about what you are trying to achieve. Will never get across to people. Don't presume that people would know every intention that you have for a particular task that you want to accomplish.
WHAT? (Mentioned in title)
Why? (Improvement, mentioned in title)
WHERE? (Described quite well)
Reason being current error handling is very fragile, a single exception can make spider to end which isn't supposed to happen. Read the codes and changes made on sone spiders to see exactly the difference.
Error Handling in Spiders needs to be improved, here is what's needed to be changed:
from scrapeNews.pipelines import loggerError
withfrom scrapeNews.settings import logger
(loggerError has been removed)loggerError.error("Your Message")
withlogger.error(__name__ + " Your Message ")
[UNHANDLED]
in error message when catching General Errors (i.e catchingException
instead of a particular error)self.urls_*
variables to reduce inconsitency in stats.The text was updated successfully, but these errors were encountered: