简体   繁体   中英

How do I rename the output file after Apify crawls?

I've searched through the Apify documentation and I wasn't able to find a way for me to set the output file name. Right now it's {INDEX}.json but can I have a custom name for each page that Apify crawls?

As I understand it, you are running it locally. Then no, you cannot rename the JSON files created by Apify.pushData() . If you really need named results, you can use the Key-value store and save named JSON files there with Apify.setValue() . Docs here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM