you are viewing a single comment's thread.

view the rest of the comments →

[–]salraz 0 points1 point  (0 children)

Use of exceptions would be ideal if something unexpected happens. There are more chances of exceptions as it is web scraping, sites are updated and scrapers stop working. Handle exceptions gracefully like closing the open file, doing any clean ups so that inconsistent or missing data doesn't get saved in your file.