Skip to content

Commit

Permalink
Replace scrapy FilesPipeline by QueridoDiarioFilesPipeline
Browse files Browse the repository at this point in the history
Updates the default item pipeline to use the custom class
QueridoDiarioFilesPipeline. With this class the gazettes from the same
date will be store in the same directory.

Signed-off-by: José Guilherme Vanz <[email protected]>
  • Loading branch information
jvanz committed Jul 4, 2020
1 parent f40a92a commit fe86546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/spider/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ timer:
oncalendar: "daily"
randomizeddelaysec: 43200

ITEM_PIPELINES: "{\"gazette.pipelines.GazetteDateFilteringPipeline\": 50, \"scrapy.pipelines.files.FilesPipeline\": 100,}"
ITEM_PIPELINES: "{\"gazette.pipelines.GazetteDateFilteringPipeline\": 50, \"gazette.pipelines.QueridoDiarioFilesPipeline\": 100,}"
SPIDER_MIDDLEWARES: "{\"scrapy_deltafetch.DeltaFetch\": 100}"

#Digital Ocean spaces config
Expand Down

0 comments on commit fe86546

Please sign in to comment.