Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // import the required module
- import got from 'got';
- const url = 'https://www.g2.com/products/visual-studio/reviews';
- const apikey = '<YOUR_ZENROWS_API_KEY>';
- (async () => {
- try {
- const {body} = await got('https://api.zenrows.com/v1/', {
- searchParams: {
- url: url,
- apikey: apikey,
- js_render: 'true',
- premium_proxy: 'true',
- }
- });
- console.log(body);
- } catch (error) {
- console.error('Error:', error.response.body);
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement