Disable write to disk
By default, data will be write to ./storage, is there a way to turn off this and use memory instead ?
6 Replies
Someone will reply to you shortly. In the meantime, this might help:
Like storing the data in an array variable?
What data you want to disable writing to disk? Scraping output or crawling stats/queues or what?
I don't think you should disable it altogether (especially the crawlee stats/queues)
other-emerald•3mo ago
If the problem is that data, like queues, is persisted across runs, you can try using
apify run --purge
: https://docs.apify.com/cli/docs/reference#apify-runApify CLI Reference Documentation | CLI | Apify Documentation
The Apify CLI provides tools for managing your Apify projects and resources from the command line. Use these commands to develop Actors locally, deploy them to Apify platform, manage storage, orchestrate runs, and handle account configuration.
xenial-black•3mo ago
setting this before starting your crawler should do the trick. btwm you can also change the storage dir using something like
if you simply wanted to change the storage location
I'll just add another example:
etc.