jayzeng / scrapy-elasticsearch

A scrapy pipeline which send items to Elastic Search server
327 stars 88 forks source link

Doesn't support scrapy dataclass item #94

Open ghost opened 2 years ago

ghost commented 2 years ago

When I use scrapy dataclass item, Can't upload my data, because 'dict(dataclassobj)' in scrapyelasticsearch.py +128

index_action = {
            '_index': index_name,
            '_type': self.settings['ELASTICSEARCH_TYPE'],
            '_source': dict(item)
        }