• Começando
  • Configuração do navegador
  • Configuração de proxy
  • Configuração avançada
  • Vídeo tutorial
  • Perguntas frequentes
  • API

Como conectar o Puppeteer com o navegador Lalicat?

1. Inicie uma API de perfil do navegador

http://127.0.0.1:18500/api/v1/profile/start?skiplock=true&profileId=F6321820-2002-4A19-A69E-0E99F376D912

Retorno:
{"status":"OK","value":"http://127.0.0.1:18500"}

2. Use o IP e a porta retornados na Etapa 1 para acessar: http://127.0.0.1:18500/json

Retorne uma string JSON:

[{
   "descrição": "",
   "devtoolsFrontendUrl": "/devtools/inspector.html?ws=127.0.0.1:18500/devtools/page/02F027712DE2BA4145EE36E931059659",
   "id": "02F027712DE2BA4145EE36E931059659",
   "title": "chrome-extension://dagmmllgpkkckbdaajfbgoggapbbdjjl/_generated_background_page.html",
   "tipo": "background_page",
   "url": "chrome-extension://dagmmllgpkkckbdaajfbgoggapbbdjjl/_generated_background_page.html",
   "webSocketDebuggerUrl": "ws://127.0.0.1:18500/devtools/page/02F027712DE2BA4145EE36E931059659"
}, {
   "descrição": "",
   "devtoolsFrontendUrl": "/devtools/inspector.html?ws=127.0.0.1:18500/devtools/page/CDCACE037C559665B711BB9E7660F8EF",
   "faviconUrl": "https://browserleaks.com/favicon.ico",
   "id": "CDCACE037C559665B711BB9E7660F8EF",
   "parentId": "508D1161361C48BB30109B1B516B407F",
   "title": "https://googleads.g.doubleclick.net/pagead/html/r20210914/r20190131/zrt_lookup.html",
   "tipo": "iframe",
   "url": "https://googleads.g.doubleclick.net/pagead/html/r20210914/r20190131/zrt_lookup.html",
   "webSocketDebuggerUrl": "ws://127.0.0.1:18500/devtools/page/CDCACE037C559665B711BB9E7660F8EF"
}]

3. O webSocketDebuggerUrl retornado na Etapa 2 é o endereço do protocolo websocks da conexão Puppeteer com o navegador Lalicat .

obter teste gratuito

Oferecemos 3 dias de teste gratuito para todos os novos usuários

Sem limitações nos recursos

By clicking "accept", you agree to use Cookies to optimize the information presented to you, and analyze the traffic of our website.
If you want to opt out of our cookies, please read our Cookie Policy for your guidance.