Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hello i connect seleniumwire with kameleo but i'm not able to intercepted request this is the code #2

Open
devlop7 opened this issue Oct 5, 2022 · 0 comments

Comments

@devlop7
Copy link

devlop7 commented Oct 5, 2022

hello i connect seleniumwire with kameleo

but i'm not able to intercepted request

this is the code


# This is the port Kameleo.CLI is listening on. Default value is 5050, but can be overridden in appsettings.json file
kameleoBaseUrl = 'http://localhost:5050'
kam_client = KameleoLocalApiClient(kameleoBaseUrl)

# Search Chrome Base Profiles
base_profiles = kam_client.search_base_profiles(
device_type='desktop',
browser_product='chrome'
)
# Create a new profile with recommended settings
# Choose one of the Base Profiles
create_profile_request = BuilderForCreateProfile \
    .for_base_profile(base_profiles[0].id) \
    .set_recommended_defaults() \
    .build()

kam_profile = kam_client.create_profile(body=create_profile_request)

# Start the browser profile
kam_client.start_profile(kam_profile.id)

options = webdriver.ChromeOptions()
options.add_experimental_option("kameleo:profileId", kam_profile.id)
driver = webdriver.Remote(
command_executor=f'{kameleoBaseUrl}/webdriver',
options=options
)

and this is my ipconfig

Windows IP Configuration

Ethernet adapter Ethernet 3:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Unknown adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Unknown adapter OpenVPN TAP-Windows6:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::a4bf:418d:6794:9d00%12
IPv4 Address. . . . . . . . . . . : 172.20.10.2
Subnet Mask . . . . . . . . . . . : 255.255.255.240
Default Gateway . . . . . . . . . : 172.20.10.1

Ethernet adapter Ethernet 2:

Media State . . . . . . . . . . . : Media disconnected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant