liaoyeguo
02/21/2025, 3:19 AMHall
02/21/2025, 3:19 AMLouis Deconinck
02/21/2025, 5:48 AMazzouzana
02/21/2025, 11:03 AMMarco
02/24/2025, 8:46 AMCrafty
02/26/2025, 1:52 AMts
Configuration.set("persistStorage", false)
setting this before starting your crawler should do the trick. btwm you can also change the storage dir using something like
ts
const storageClient = new MemoryStorage({
localDataDirectory: crawlStoragePath,
persistStorage: true,
});
if you simply wanted to change the storage locationPepa J
03/03/2025, 3:07 PMtypescript
import { MemoryStorage } from '@crawlee/memory-storage';
import { PlaywrightCrawler } from 'crawlee';
import { RequestQueue } from 'apify';
export const memoryRequestQueue = await RequestQueue.open(null, {
storageClient: new MemoryStorage(),
});
const crawler = new PlaywrightCrawler({
proxyConfiguration,
requestQueue: memoryRequestQueue,
// ...
});
etc.