Skip to content

How is it possible to run multiple threads, with diff proxys #2860

@Akshay-Shingala

Description

@Akshay-Shingala

def access_site(cmd):
os.system(cmd)

urls = [
'https://example.com',
'https://example.com',
['https://example.com'
]

processes = []
for url in urls:
cmd = f'pytest w.py --proxy=USER_NAME:PASSWORD@pr.oxylabs.io:7777 --gui --uc --no-summary -q'
process = thread.Thread(target=run_test, args=(cmd, ))
processes.append(process)
process.start()
for i in processes:
i.join()

this is my code

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModeduplicateThe answer/solution already exists somewherequestionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions