Coder Social home page Coder Social logo

momin122 / local-api-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kameleo-io/local-api-examples

0.0 0.0 0.0 175 KB

Useful and easy to understand examples written in Node.js and .NET Core about web scraping and automated browsing with Kameleo Client

Home Page: https://kameleo.io/learn-more/automation

C# 31.55% JavaScript 39.48% Python 28.96%

local-api-examples's Introduction

Kameleo Local API Example Codes

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.

Features

  • Stay completely undetected, so websites won’t be able to detect that you are using automation tools
  • Start unlimited number of profiles with different natural browser fingerprints
  • Use authenticated HTTP/SOCKS/SSH proxies in browsers
  • Create isolated browsing environments simultaneously
  • Use real browser profiles of Chrome, Firefox, Safari and Edge
  • Edit, Import or Export browser cookies
  • Modify WebRTC parameters
  • Modify Geolocation settings
  • Modify Timezone and Language settings
  • Modify WebGL fingerprint
  • Modify 2D Canvas fingerprint
  • Modify Navigator properties
  • Modify Screen resolution

Note: You need Automation package of Kameleo to access the features described below.

How to start examples

1. Start the Kameleo.CLI on your computer

./Kameleo.CLI.exe email="[email protected]" password="Pa$$w0rd"

2. Start the example code that you are interested in

  • For projects located in the nodejs folder you must run npm install and then npm start.
  • For projects located in the python folder you must run pip install -r requirements.txt and then python app.py.
  • For project located in the dotnet-csharp folder just open the .csproj file using Visual Studio 2019 or later.

3. Check out Kameleo Help Center

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
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.
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_save_load This is a quick example of saving and loading profiles to/from .kameleo files on your computer.
start_chrome In this example you can see how you can change the browser started by Kameleo using profile attributes.
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.
start_browser_with_additional_web_driver_settings Check out this example if you want to pass command-line arguments or extra Selenium capabilities when starting a browser.
test_proxy Kameleo makes it easy to use any HTTP, SOCKS, or SSH proxy. Check out these few lines of code how to check a proxy validity.

local-api-examples's People

Contributors

kameleo-team avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.