Apify and Crawlee Official Forum

Updated 4 months ago

Maintain order of column in Dataset from scrapy crawler.

I am creating scraper's using scrapy, python. I have to conform to an output format. The order of columns in dataset automatically turn's into alphabetical. It is very tedious task to manually adjust the orders again.
Is there a way to maintain the orders of columns as that of output.
v
1 comment
the Hi , the only way to change the order of columns is by selecting all the columns in the desired order and then exporting it. You can do this both using the console on the dataset detail and using API endpoint: https://docs.apify.com/api/v2#/reference/datasets/dataset/get-items.
Add a reply
Sign up and join the conversation on Discord