From f678a3eff058d924412248901d4cb15b38b6b140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDilvinas?= <159907476+ZilvinasSP@users.noreply.github.com> Date: Wed, 29 May 2024 14:47:41 +0300 Subject: [PATCH] Delete nodejs/amazon_search.js --- nodejs/amazon_search.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 nodejs/amazon_search.js diff --git a/nodejs/amazon_search.js b/nodejs/amazon_search.js deleted file mode 100644 index 388a9cf..0000000 --- a/nodejs/amazon_search.js +++ /dev/null @@ -1,25 +0,0 @@ -async function fetchAmazonData() { - try { - const response = await fetch("https://scraper-api.smartproxy.com/v2/scrape", { - method: "POST", - body: JSON.stringify({ - "target": "amazon_search", - "query": "laptop", - "page_from": "1", - "parse": true - }), - headers: { - "Content-Type": "application/json", - "Authorization": "Basic VTAwMDAxNjgwOTM6UFcxMDFkNDc0MjM5MTY2NGVhZDJkMTJiYjBjNTAwZjI3MzI=" - } - }); - - const data = await response.json(); - console.log(JSON.stringify(data)); - - } catch (error) { - console.log(error); - } -} - -fetchAmazonData(); \ No newline at end of file