Skip to content

Commit

Permalink
add DropItem for incomplete item
Browse files Browse the repository at this point in the history
  • Loading branch information
bayu authored and bayu committed Oct 2, 2017
1 parent 09dcad8 commit 011cd9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper/code/crawler/pipelines/completeness.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ def process_item(self, item, spider):

if not complete:
self.exporter.export_item(item)
raise DropItem("Missing one or more element in %s" % item['url'])

return item

0 comments on commit 011cd9d

Please sign in to comment.