Useful and easy to understand examples written in Node.js and .NET Core about web scraping and automated browsing with Kameleo Client
With Kameleo, you can easily create multiple virtual browser profiles to work with multiple accounts. It helps you hide your actual timezone, geolocation, language, IP address and creates natural browser fingerprints to prevent detection by anti-bot systems. Kameleo is compatible with Selenium, Playwright, and Puppeteer frameworks for automating web scraping tasks. This repository shows useful and easy to understand examples written in Node.js, Python and .NET Core (C#) about web scraping and automated browsing with Kameleo Client.
Note: You need Automation package of Kameleo to access the features described below.
./Kameleo.CLI.exe email="[email protected]" password="Pa$$w0rd"
nodejs
folder you must run npm install
and then npm start
.python
folder you must run pip install -r requirements.txt
and then python app.py
.dotnet-csharp
folder just open the .csproj file using Visual Studio 2019 or later.If you are interested in more information about Kameleo, or have encountered an issue with using it, please check out our Help Center .
Folder | Description |
---|---|
automate_mobile_profiles_on_desktop | This code shows you how to emulate a mobile device in Chroma browser. And how to drive it with Selenium or any other automation framework. |
clean_workspace | Delete the profiles in your Kameleo Workspace. Useful when migrating to Kameleo 3, in particular |
connect_to_selenium | This code shows you how to launch a browser in Kameleo, perform actions using Selenium commands, and then close the browser. |
connect_with_playwright_to_chrome | This code shows how to start a Chromium-based browser in Kameleo and automate tasks using the Playwright framework. |
connect_with_playwright_to_firefox | This code illustrates how to start a Firefox in Kameleo and then automate actions using Playwright framework. |
connect_with_puppeteer | This code illustrates how to start a Chromium based browser in Kameleo and then automate actions using Puppeteer framework. |
create_profile | This is an example for creating a Kameleo profile using the Local API. |
duplicate_profile | This code shows you how to duplicate the data stored in a virtual browser profile. |
find_baseprofile | This quick example shows you different ways to find the perfect base profile using Kameleo Local API. |
manage_cookies | Kameleo allows you to edit, modify or create cookies with just a few lines of code. |
profile_export_import | This is a quick example of saving and loading profiles to/from .kameleo files on your computer. |
start_browser_with_additional_options | Check out this example if you want to pass command-line arguments or extra Selenium capabilities when starting a browser. |
start_with_proxy | Kameleo makes it easy to use any HTTP, SOCKS, or SSH proxy. Check out these few lines of code to see how. |
update_profile | This code is to illustrate how easy is to modify profile attributes after you have created one. |
upgrade_profile | If you reuse virtual browser profiles and you would like to update the spoofed browser version you should follow this example. |