You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With [Kameleo](https://kameleo.io), 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](https://www.selenium.dev/), [Playwright](https://playwright.dev/), and [Puppeteer](https://pptr.dev/) frameworks for automating web scraping tasks. This Python package provides convenient access to the [Local API](https://app.swaggerhub.com/apis/kameleo-team/kameleo-local-api/) REST interface of the Kameleo Client. See the [article](https://help.kameleo.io/hc/en-us/articles/4418166326417) in our knowledge base for Getting Started with Kameleo Automation.
6
4
7
-
# Features
5
+
##Features
8
6
9
-
-Stay completely undetected, so websites won’t be able to detect that you are using automation tools
10
-
-Start unlimited number of profiles with different natural browser fingerprints
11
-
-Use authenticated HTTP/SOCKS/SSH proxies in browsers
# At this point you can automate the browser with your favorite framework
64
60
```
65
61
66
-
# Automate Kameleo profiles with Selenium
62
+
##Automate Kameleo profiles with Selenium
67
63
68
64
Kameleo gives you the ability to control any supported browser using Selenium. It uses the WebDriver protocol, a W3C specification, and industry-standard to interact with a browser.
69
65
@@ -88,9 +84,9 @@ driver = webdriver.Remote(
88
84
driver.get('https://google.com')
89
85
```
90
86
91
-
The full example can be found [here](https://github.com/kameleo-io/local-api-examples/blob/master/python/connect_to_selenium/app.py).
87
+
The full example can be found [here](https://github.com/kameleo-io/local-api-examples/blob/master/python/connect_with_selenium/app.py).
92
88
93
-
# Automate Kameleo profiles with Puppeteer (Chromium-based)
89
+
##Automate Kameleo profiles with Puppeteer (Chromium-based)
94
90
95
91
Kameleo lets you control Chromium-based browsers (sorry Firefox fans) using the [Pyppeteer library](https://pypi.org/project/pyppeteer/). In this simple example you can see how to connect to the browser that Kameleo starts.
The full example can be found [here](https://github.com/kameleo-io/local-api-examples/blob/master/python/connect_with_puppeteer/app.py).
116
112
117
-
# Automate Kameleo profiles with Playwright
113
+
##Automate Kameleo profiles with Playwright
118
114
119
115
Kameleo allows you to control the browser with the official [Playwright package](https://pypi.org/project/playwright/). It works little bit different with Chromium-based browsers and Firefox, so we provide an example for both. Here we showcase how you can connect to the browser that is already started by Kameleo.
120
116
@@ -127,7 +123,7 @@ from playwright.sync_api import sync_playwright
127
123
128
124
You can find more details here: [Using Kameleo with Playwright framework – Kameleo Support Center](https://help.kameleo.io/hc/en-us/articles/4419471627793-Using-Kameleo-with-Playwright-framework).
129
125
130
-
## Chromium-based profiles with Playwright
126
+
###Chromium-based profiles with Playwright
131
127
132
128
```python
133
129
# Connect to the browser with Playwright through CDP
@@ -145,7 +141,7 @@ with sync_playwright() as playwright:
145
141
146
142
The full example can be found [here](https://github.com/kameleo-io/local-api-examples/blob/master/python/connect_with_playwright_to_chrome/app.py).
147
143
148
-
## Firefox-based profiles with Playwright
144
+
###Firefox-based profiles with Playwright
149
145
150
146
```python
151
147
# Connect to the browser with Playwright
@@ -161,7 +157,7 @@ with sync_playwright() as playwright:
The full example can be found [here](https://github.com/kameleo-io/local-api-examples/blob/master/python/automate_mobile_profiles_on_desktop/app.py).
227
219
228
-
# Example codes
220
+
##Example codes
229
221
230
222
[Several examples](https://github.com/kameleo-io/local-api-examples) have been prepared in a different repository to showcase the most interesting features. Feel free to create a pull request to add new example codes.
231
223
232
-
-Finding base profiles
233
-
-Creating profiles with custom options
234
-
-Updating profiles with new settings
235
-
-How to start a profile
236
-
-Using Selenium with Local API
237
-
-Using Playwright with Kameleo
238
-
-Using Puppeteer with Kameleo
239
-
-How to emulate mobile devices
240
-
-Adding an HTTP, SOCKS or SSH proxy to profile
241
-
-Saving/Loading a browsing session to/from a .kameleo file
242
-
-Modify and Delete browser cookies
243
-
-Start profile with extra WebDriver capabilities
244
-
-How to duplicate virtual browser profiles
245
-
-Refresh the browser of the emulated profiles
224
+
- Finding fingerprints
225
+
- Creating profiles with custom options
226
+
- Updating profiles with new settings
227
+
- How to start a profile
228
+
- Using Selenium with Local API
229
+
- Using Playwright with Kameleo
230
+
- Using Puppeteer with Kameleo
231
+
- How to emulate mobile devices
232
+
- Adding an HTTP, SOCKS or SSH proxy to profile
233
+
- Saving/Loading a browsing session to/from a .kameleo file
234
+
- Modify and Delete browser cookies
235
+
- Start profile with extra WebDriver capabilities
236
+
- How to duplicate virtual browser profiles
237
+
- Refresh the browser of the emulated profiles
246
238
247
239
> Note: _If you are interested in more information about Kameleo, or have encountered an issue with using it, please check out our [Help Center](https://help.kameleo.io/)._
248
240
249
-
#Endpoints
241
+
## Package
250
242
251
-
Available API endpoints with exhaustive descriptions and example values are documented on this [SwaggerHub](https://app.swaggerhub.com/apis/kameleo-team/kameleo-local-api/) page. This package has built-in [IntelliSense](https://code.visualstudio.com/docs/editor/intellisense) support in Visual Studio Code, no extra package installation needed.
243
+
This package can be found on PyPI here: [kameleo.local-api-client](https://pypi.org/project/kameleo.local-api-client/).
252
244
253
-
#Package
245
+
## Endpoints
254
246
255
-
This package can be found on PyPI here: [kameleo.local-api-client](https://pypi.org/project/kameleo.local-api-client/).
247
+
Available API endpoints with exhaustive descriptions and example values are documented on this [SwaggerHub](https://app.swaggerhub.com/apis/kameleo-team/kameleo-local-api/) page. This package has built-in [IntelliSense](https://code.visualstudio.com/docs/editor/intellisense) support in Visual Studio Code, no extra package installation needed.
256
248
257
-
# License
249
+
##License
258
250
259
251
This project is released under MIT License. Please refer the LICENSE.txt for more details.
0 commit comments