No recent searches
Popular Articles
Sorry! nothing found for
Posted over 5 years ago by varunsub
I know this is similar to https://support.scrapinghub.com/support/discussions/topics/22000010422
but I am using my API key. I'm not sure if I am using it in the right section, I am just following some of the documentation I have seen for puppeteer. Below are the relevant sections of my code.
args: [/*'--disable-dev-shm-usage', */
`--proxy-server=proxy.crawlera.com:8010`,'--ignore-certificaterrors https://httpbin.org/get'
],
ignoreHTTPSErrors: true
});
await page.setExtraHTTPHeaders({
'Proxy-Authorization': 'Basic ' + Buffer.from ('<MYAPIKEY>:').toString('base64'),
Thanks in advance
1 Votes
1 Comments
peixoto posted over 5 years ago Admin
Hi,
The is kinda messy, but seem right.
I'm attaching a working example using [email protected]
Hope this helps.
Attachments (1)
index.js1.38 KB
0 Votes
Login to post a comment
People who like this
This post will be deleted permanently. Are you sure?
I know this is similar to https://support.scrapinghub.com/support/discussions/topics/22000010422
but I am using my API key. I'm not sure if I am using it in the right section, I am just following some of the documentation I have seen for puppeteer. Below are the relevant sections of my code.
args: [/*'--disable-dev-shm-usage', */
`--proxy-server=proxy.crawlera.com:8010`,'--ignore-certificaterrors https://httpbin.org/get'
],
ignoreHTTPSErrors: true
});
await page.setExtraHTTPHeaders({
'Proxy-Authorization': 'Basic ' + Buffer.from ('<MYAPIKEY>:').toString('base64'),
});
Thanks in advance
1 Votes
1 Comments
peixoto posted over 5 years ago Admin
Hi,
The is kinda messy, but seem right.
I'm attaching a working example using [email protected]
Hope this helps.
Attachments (1)
index.js
1.38 KB
0 Votes
Login to post a comment