Skip to content

Conversation

nhuray
Copy link

@nhuray nhuray commented Oct 16, 2015

Hi Scrapy Team,

For our needs at 1science, we modified the feed exporter to support batch export controlling the size (number of item in a file) with a new settings FEED_BATCH_SIZE.

We added a unit test and updated the documentation.

Please give me your feedbacks !

Nicolas Huray

@codecov-io
Copy link

Current coverage is 82.65%

Merging #1545 into master will increase coverage by +0.03% as of ec47c42

Powered by Codecov. Updated on successful CI builds.

@@ -140,6 +140,8 @@ class FeedExporter(object):

def __init__(self, settings):
self.settings = settings
self.indexfmt = '{:05d}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we shouldn't hardcode format for the index; users can write /tmp/%(start)s/feed-%(index)05d.json to get the same result.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice stuff

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to merge once this is fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants