Answer the question
In order to leave comments, you need to log in
Why doesn't this code work on Windows (pyppeteer)?
async def process(query):
print('START PROCESS')
async with aiofiles.open(os.path.join(BASEDIR, config['PARSER']['Proxies']), mode='r', encoding="utf-8") as f:
proxies = await f.readlines()
await f.close()
proxies = [x.strip() for x in proxies if x != '']
proxy = random.choice(proxies)
print('OZZZZZ')
browser = await launch(headless=False, args=['--no-sandbox', '--proxy-server='+proxy, ])
print(4)
#Далее код
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question