/users/me
but how do I get this info via my actor. Below is a skeletal implemention of the actor:import { Actor } from 'apify'; import { PuppeteerCrawler } from 'crawlee'; import { router } from './routes.js'; await Actor.init(); const input = await Actor.getInput(); const startUrls = input?.startUrls || [{ url: 'https://apify.com' }]; const proxyConfiguration = await Actor.createProxyConfiguration(); const crawler = new PuppeteerCrawler({ proxyConfiguration, requestHandler: router, }); await crawler.run(startUrls); await Actor.exit();
.mhtml
file extension? Using the code below seems to always set it to .bin
extensionawait KeyValueStore.setValue("some-name", data, { contentType: `application/x-mimearchive` \\ multipart/related doesn't work either, }); // data above is either text or buffer
some-name.mhtml
..., preNavigationHooks: [ async (crawlingContext, gotoOptions) => { const { page, browserController: { browser } } = crawlingContext; const context = await browser.defaultBrowserContext(); context.clearPermissionOverrides(); context.overridePermissions('some-domain', ['some-feature']); } ], ...
WARN PuppeteerCrawler: Reclaiming failed request back to the list or queue. Cannot read private member from an object whose class did not declare it
.mhtml
file extension? Using the code below seems to always set it to .bin
extensionawait KeyValueStore.setValue("some-name", data, { contentType: `application/x-mimearchive` \\ multipart/related doesn't work either, }); // data above is either text or buffer
some-name.mhtml
..., preNavigationHooks: [ async (crawlingContext, gotoOptions) => { const { page, browserController: { browser } } = crawlingContext; const context = await browser.defaultBrowserContext(); context.clearPermissionOverrides(); context.overridePermissions('some-domain', ['some-feature']); } ], ...
WARN PuppeteerCrawler: Reclaiming failed request back to the list or queue. Cannot read private member from an object whose class did not declare it