scrapy-djangoitem icon indicating copy to clipboard operation
scrapy-djangoitem copied to clipboard

Added async 'asave' method

Open kontur opened this issue 9 months ago • 0 comments

Allows you to save the items in a pipeline with Django's async ORM like so:

class FooPipeline(object):
    async def process_item(self, item, spider):
        await item.asave()
        return item

kontur avatar Oct 01 '23 15:10 kontur