# Code examples

The [kameleo-io/kameleo](https://github.com/kameleo-io/kameleo) GitHub repository contains a collection of self-contained, runnable examples for each SDK. Each example covers one specific task and can be cloned and run on its own. Topics include profile management, browser automation frameworks, proxy setup, and cookie handling.

!!!tip Tip
If you are new to the API, start with the [Getting started](../01-getting-started/02-quickstart.md) guide before exploring these examples.
!!!

| Example                                                        |                                                                Python                                                                |                                                                 JavaScript                                                                 |                                                                    C#                                                                    |
| -------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------: |
| Create, duplicate, update, and launch profiles via the API     |            [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/basic_profile_operations/app.py)             |            [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/basic_profile_operations/index.js)             |            [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/basic_profile_operations/Program.cs)             |
| Delete all profiles from your Kameleo workspace                |                 [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/clean_workspace/app.py)                 |                 [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/clean_workspace/index.js)                 |                 [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/clean_workspace/Program.cs)                 |
| Control a Chrome profile with Selenium over WebDriver          |              [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/connect_with_selenium/app.py)              |              [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/connect_with_selenium/index.js)              |              [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/connect_with_selenium/Program.cs)              |
| Control a Chrome profile with Playwright via CDP               |        [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/connect_with_playwright_to_chrome/app.py)        |        [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/connect_with_playwright_to_chrome/index.js)        |        [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/connect_with_playwright_to_chrome/Program.cs)        |
| Control a Firefox (Junglefox) profile with Playwright          |       [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/connect_with_playwright_to_firefox/app.py)        |       [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/connect_with_playwright_to_firefox/index.js)        |       [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/connect_with_playwright_to_firefox/Program.cs)        |
| Control a Chrome profile with Puppeteer via CDP                |             [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/connect_with_puppeteer/app.py)              |             [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/connect_with_puppeteer/index.js)              |             [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/connect_with_puppeteer/Program.cs)              |
| Attach an HTTP, SOCKS5, or SSH proxy to a browser profile      |                [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/start_with_proxy/app.py)                 |                [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/start_with_proxy/index.js)                 |                [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/start_with_proxy/Program.cs)                 |
| List, add, and delete cookies from a profile via the API       |                 [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/manage_cookies/app.py)                  |                 [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/manage_cookies/index.js)                  |                 [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/manage_cookies/Program.cs)                  |
| Warm up a profile by browsing real sites to collect cookies    |                  [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/cookie_robot/app.py)                   |                  [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/cookie_robot/index.js)                   |                  [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/cookie_robot/Program.cs)                   |
| Take a full-page screenshot of a website using Puppeteer       |         [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/take_screenshot_with_puppeteer/app.py)          |         [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/take_screenshot_with_puppeteer/index.js)          |         [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/take_screenshot_with_puppeteer/Program.cs)          |
| Export and import profiles to/from .kameleo files on disk      |              [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/profile_export_import/app.py)              |              [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/profile_export_import/index.js)              |              [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/profile_export_import/Program.cs)              |
| Launch a profile with CLI args, Selenium options, or prefs     |      [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/start_browser_with_additional_options/app.py)      |      [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/start_browser_with_additional_options/index.js)      |      [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/start_browser_with_additional_options/Program.cs)      |
| Upgrade a profile's browser kernel to the latest version       |                 [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/upgrade_profile/app.py)                 |                 [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/upgrade_profile/index.js)                 |                 [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/upgrade_profile/Program.cs)                 |
| Upload a file to a website using Selenium                      |                                                                  —                                                                   |                                                                     —                                                                      |            [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/file_upload_with_selenium/Program.cs)            |
| Automate an iOS/Safari mobile profile with Selenium on desktop |       [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/automate_mobile_profiles_on_desktop/app.py)       |       [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/automate_mobile_profiles_on_desktop/index.js)       |       [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/automate_mobile_profiles_on_desktop/Program.cs)       |
| Intercept and redirect network traffic using Selenium          |                                                                  —                                                                   |                                                                     —                                                                      |      [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/modify_request_response_with_selenium/Program.cs)      |
| Use the Kameleo API with CommonJS instead of ESM modules       |                                                                  —                                                                   |                    [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/commonjs/index.js)                     |                                                                    —                                                                     |
| Intercept, redirect, and replace responses with Playwright     | [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/modify_network_request_response_with_playwright/app.py) | [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/modify_network_request_response_with_playwright/index.js) | [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/modify_network_request_response_with_playwright/Program.cs) |
| Use init scripts, evaluate, screenshots, and video recording   |          [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/python/examples/playwright_advanced_features/app.py)           |          [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/typescript/examples/playwright_advanced_features/index.js)           |          [View](https://github.com/kameleo-io/kameleo/blob/master/sdk/csharp/examples/playwright_advanced_features/Program.cs)           |
