Camoufox Scraper
No credit card required
Camoufox Scraper
No credit card required
Simple actor that uses Playwright with Camoufox to test if a specific website blocking mechanisms can be bypassed by using Camoufox.
You can access the Camoufox Scraper programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11 "startUrls": [
12 {
13 "url": "https://crawlee.dev"
14 }
15 ],
16 "maxCrawlingDepth": 1,
17 "maxRequestsPerCrawl": 1,
18 "requestTimeout": 30,
19 "linkSelector": "a[href]",
20 "linkPatterns": [
21 ".*crawlee\\.dev.*"
22 ],
23 "pageFunction": `from typing import Any
24 from crawlee.crawlers import PlaywrightCrawlingContext
25
26 async def page_function(context: PlaywrightCrawlingContext) -> Any:
27 url = context.request.url
28 title = await context.page.locator("title").first.inner_text()
29 return {'url': url, 'title': title}`,
30 "proxyConfiguration": {
31 "useApifyProxy": true
32 }
33};
34
35// Run the Actor and wait for it to finish
36const run = await client.actor("josef.prochazka/camoufox-scraper").call(input);
37
38// Fetch and print Actor results from the run's dataset (if any)
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Camoufox Scraper API in JavaScript
The Apify API client for JavaScriptis the official library that allows you to use Camoufox Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
npm install apify-client
Other API clients include:
Actor Metrics
1 monthly user
-
0 No stars yet
>99% runs succeeded
Created in Feb 2025
Modified a day ago