├── python ├── amazonsearch.py ├── wayfairsearch.py ├── amazonpricing.py ├── amazonproduct.py ├── amazonreviews.py ├── amazonquestions.py ├── amazon.py ├── wayfair.py ├── amazonbestsellers.py └── ecommerce.py ├── nodejs ├── amazonreviews.js ├── amazonsearch.js ├── wayfairsearch.js ├── amazonpricing.js ├── amazonproduct.js ├── amazon.js ├── amazonquestions.js ├── wayfair.js ├── amazonbestsellers.js └── ecommerce.js ├── php ├── amazonpricing.php ├── amazonproduct.php ├── amazonreviews.php ├── amazonsearch.php ├── wayfairsearch.php ├── amazonquestions.php ├── amazon.php ├── wayfair.php ├── amazonbestsellers.php └── ecommerce.php ├── LICENSE └── README.md /python/amazonsearch.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 'target': 'amazon_search', 5 | 'query': 'B09H74FXNW', 6 | 'parse': True, 7 | } 8 | 9 | username = 'SPusername' 10 | password = 'SPpassword' 11 | 12 | response = requests.post( 13 | 'https://scraper-api.smartproxy.com/v2/scrape', 14 | json = task_params, 15 | auth = (username, password) 16 | ) 17 | 18 | print(response.text) 19 | -------------------------------------------------------------------------------- /python/wayfairsearch.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 'target': 'wayfair_search', 5 | 'query': 'doormat', 6 | 'parse': False, 7 | } 8 | 9 | username = 'SPusername' 10 | password = 'SPpassword' 11 | 12 | response = requests.post( 13 | 'https://scraper-api.smartproxy.com/v2/scrape', 14 | json = task_params, 15 | auth = (username, password) 16 | ) 17 | 18 | print(response.text) 19 | -------------------------------------------------------------------------------- /python/amazonpricing.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 'target': 'amazon_pricing', 5 | 'query': 'B09H74FXNW', 6 | 'parse': True, 7 | } 8 | 9 | username = 'SPusername' 10 | password = 'SPpassword' 11 | 12 | response = requests.post( 13 | 'https://scraper-api.smartproxy.com/v2/scrape', 14 | json = task_params, 15 | auth = (username, password) 16 | ) 17 | 18 | print(response.text) 19 | -------------------------------------------------------------------------------- /python/amazonproduct.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 'target': 'amazon_product', 5 | 'query': 'B09H74FXNW', 6 | 'parse': True, 7 | } 8 | 9 | username = 'SPusername' 10 | password = 'SPpassword' 11 | 12 | response = requests.post( 13 | 'https://scraper-api.smartproxy.com/v2/scrape', 14 | json = task_params, 15 | auth = (username, password) 16 | ) 17 | 18 | print(response.text) 19 | -------------------------------------------------------------------------------- /python/amazonreviews.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 'target': 'amazon_reviews', 5 | 'query': 'B09H74FXNW', 6 | 'parse': True, 7 | } 8 | 9 | username = 'SPusername' 10 | password = 'SPpassword' 11 | 12 | response = requests.post( 13 | 'https://scraper-api.smartproxy.com/v2/scrape', 14 | json = task_params, 15 | auth = (username, password) 16 | ) 17 | 18 | print(response.text) 19 | -------------------------------------------------------------------------------- /python/amazonquestions.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 'target': 'amazon_questions', 5 | 'query': 'B09H74FXNW', 6 | 'parse': True, 7 | } 8 | 9 | username = 'SPusername' 10 | password = 'SPpassword' 11 | 12 | response = requests.post( 13 | 'https://scraper-api.smartproxy.com/v2/scrape', 14 | json = task_params, 15 | auth = (username, password) 16 | ) 17 | 18 | print(response.text) 19 | -------------------------------------------------------------------------------- /python/amazon.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 'target': 'amazon', 5 | 'url': 'https://www.amazon.com/dp/B09H74FXNW', 6 | 'parse': True, 7 | } 8 | 9 | username = 'SPusername' 10 | password = 'SPpassword' 11 | 12 | response = requests.post( 13 | 'https://scraper-api.smartproxy.com/v2/scrape', 14 | json = task_params, 15 | auth = (username, password) 16 | ) 17 | 18 | print(response.text) 19 | -------------------------------------------------------------------------------- /python/wayfair.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 'target': 'wayfair', 5 | 'url': 'https://www.wayfair.com/rugs/pdp/highland-dunes-gunnell-30-x-18-non-slip-outdoor-door-mat-w005481595.html', 6 | 'parse': False, 7 | } 8 | 9 | username = 'SPusername' 10 | password = 'SPpassword' 11 | 12 | response = requests.post( 13 | 'https://scraper-api.smartproxy.com/v2/scrape', 14 | json = task_params, 15 | auth = (username, password) 16 | ) 17 | 18 | print(response.text) 19 | -------------------------------------------------------------------------------- /nodejs/amazonreviews.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'amazon_reviews', 6 | parse: true, 7 | query: 'B09H74FXNW' 8 | }, 9 | headers: { 10 | 'Content-Type': 'application/json', 11 | 'Authorization': 'Basic AUTH' 12 | }, 13 | } 14 | ).catch(error => console.log(error)); 15 | 16 | console.log(response) 17 | -------------------------------------------------------------------------------- /nodejs/amazonsearch.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'amazon_search', 6 | parse: true, 7 | query: 'B09H74FXNW' 8 | }, 9 | headers: { 10 | 'Content-Type': 'application/json', 11 | 'Authorization': 'Basic AUTH' 12 | }, 13 | } 14 | ).catch(error => console.log(error)); 15 | 16 | console.log(response) 17 | -------------------------------------------------------------------------------- /nodejs/wayfairsearch.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'wayfair_search', 6 | parse: false, 7 | query: 'doormat' 8 | }, 9 | headers: { 10 | 'Content-Type': 'application/json', 11 | 'Authorization': 'Basic AUTH' 12 | }, 13 | } 14 | ).catch(error => console.log(error)); 15 | 16 | console.log(response) 17 | -------------------------------------------------------------------------------- /nodejs/amazonpricing.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'amazon_pricing', 6 | parse: true, 7 | query: 'B09H74FXNW' 8 | }, 9 | headers: { 10 | 'Content-Type': 'application/json', 11 | 'Authorization': 'Basic AUTH' 12 | }, 13 | } 14 | ).catch(error => console.log(error)); 15 | 16 | console.log(response) 17 | 18 | -------------------------------------------------------------------------------- /nodejs/amazonproduct.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'amazon_product', 6 | parse: true, 7 | query: 'B09H74FXNW' 8 | }, 9 | headers: { 10 | 'Content-Type': 'application/json', 11 | 'Authorization': 'Basic AUTH' 12 | }, 13 | } 14 | ).catch(error => console.log(error)); 15 | 16 | console.log(response) 17 | 18 | -------------------------------------------------------------------------------- /python/amazonbestsellers.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 'target': 'amazon_bestsellers', 5 | 'query': '2407760011', 6 | 'domain': 'com', 7 | 'locale':'en-us', 8 | 'device_type':'desktop', 9 | 'parse':'true' 10 | } 11 | 12 | username = 'SPusername' 13 | password = 'SPpassword' 14 | 15 | response = requests.post( 16 | 'https://scraper-api.smartproxy.com/v2/scrape', 17 | json = task_params, 18 | auth = (username, password) 19 | ) 20 | 21 | print(response.text) 22 | -------------------------------------------------------------------------------- /nodejs/amazon.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'amazon', 6 | parse: true, 7 | url: 'https://www.amazon.com/dp/B09H74FXNW' 8 | }, 9 | headers: { 10 | 'Content-Type': 'application/json', 11 | 'Authorization': 'Basic AUTH' 12 | }, 13 | } 14 | ).catch(error => console.log(error)); 15 | 16 | console.log(response) 17 | 18 | -------------------------------------------------------------------------------- /nodejs/amazonquestions.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'amazon_questions', 6 | parse: true, 7 | query: 'B09H74FXNW' 8 | }, 9 | headers: { 10 | 'Content-Type': 'application/json', 11 | 'Authorization': 'Basic AUTH' 12 | }, 13 | } 14 | ).catch(error => console.log(error)); 15 | 16 | console.log(response) 17 | 18 | 19 | -------------------------------------------------------------------------------- /nodejs/wayfair.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'wayfair', 6 | parse: false, 7 | url: 'https://www.wayfair.com/rugs/pdp/highland-dunes-gunnell-30-x-18-non-slip-outdoor-door-mat-w005481595.html' 8 | }, 9 | headers: { 10 | 'Content-Type': 'application/json', 11 | 'Authorization': 'Basic AUTH' 12 | }, 13 | } 14 | ).catch(error => console.log(error)); 15 | 16 | console.log(response) 17 | -------------------------------------------------------------------------------- /nodejs/amazonbestsellers.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'amazon_bestsellers', 6 | parse: true, 7 | query: '2407760011', 8 | domain: 'com', 9 | locale: 'en_us', 10 | device_type: 'desktop' 11 | }, 12 | headers: { 13 | 'Content-Type': 'application/json', 14 | 'Authorization': 'Basic AUTH' 15 | }, 16 | } 17 | ).catch(error => console.log(error)); 18 | 19 | console.log(response) 20 | -------------------------------------------------------------------------------- /python/ecommerce.py: -------------------------------------------------------------------------------- 1 | import requests 2 | 3 | task_params = { 4 | 5 | 'target': 'ecommerce', 6 | 'url': 'https://www.walmart.com/ip/Marketside-Pepperoni-Pizza-Traditional-Crust-Extra-Large-44-6-oz-Fresh/579824441?athbdg=L1600&from=searchResults', 7 | 'device_type': 'desktop', 8 | 'parser_type': 'ecommerce_product', 9 | 'geo':'United States', 10 | 'headless':'html', 11 | 'locale':'en-us', 12 | 'parse': 'true' 13 | 14 | } 15 | 16 | username = 'SPusername' 17 | password = 'SPpassword' 18 | 19 | response = requests.post( 20 | 'https://scraper-api.smartproxy.com/v2/scrape', 21 | json = task_params, 22 | auth = (username, password) 23 | ) 24 | 25 | print(response.text) 26 | -------------------------------------------------------------------------------- /php/amazonpricing.php: -------------------------------------------------------------------------------- 1 | 'amazon_pricing', 5 | 'query' => 'B09H74FXNW', 6 | 'parse' => True 7 | ); 8 | 9 | $ch = curl_init(); 10 | 11 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 12 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 13 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 14 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 15 | curl_setopt($ch, CURLOPT_POST, 1); 16 | 17 | $headers = array(); 18 | $headers[] = 'Content-Type: application/json'; 19 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 20 | 21 | $result = curl_exec($ch); 22 | echo $result; 23 | 24 | if (curl_errno($ch)) { 25 | echo 'Error:' . curl_error($ch); 26 | } 27 | curl_close ($ch); 28 | ?> 29 | -------------------------------------------------------------------------------- /php/amazonproduct.php: -------------------------------------------------------------------------------- 1 | 'amazon_product', 5 | 'query' => 'B09H74FXNW', 6 | 'parse' => True 7 | ); 8 | 9 | $ch = curl_init(); 10 | 11 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 12 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 13 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 14 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 15 | curl_setopt($ch, CURLOPT_POST, 1); 16 | 17 | $headers = array(); 18 | $headers[] = 'Content-Type: application/json'; 19 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 20 | 21 | $result = curl_exec($ch); 22 | echo $result; 23 | 24 | if (curl_errno($ch)) { 25 | echo 'Error:' . curl_error($ch); 26 | } 27 | curl_close ($ch); 28 | ?> 29 | -------------------------------------------------------------------------------- /php/amazonreviews.php: -------------------------------------------------------------------------------- 1 | 'amazon_reviews', 5 | 'query' => 'B09H74FXNW', 6 | 'parse' => True 7 | ); 8 | 9 | $ch = curl_init(); 10 | 11 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 12 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 13 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 14 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 15 | curl_setopt($ch, CURLOPT_POST, 1); 16 | 17 | $headers = array(); 18 | $headers[] = 'Content-Type: application/json'; 19 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 20 | 21 | $result = curl_exec($ch); 22 | echo $result; 23 | 24 | if (curl_errno($ch)) { 25 | echo 'Error:' . curl_error($ch); 26 | } 27 | curl_close ($ch); 28 | ?> 29 | -------------------------------------------------------------------------------- /php/amazonsearch.php: -------------------------------------------------------------------------------- 1 | 'amazon_search', 5 | 'query' => 'B09H74FXNW', 6 | 'parse' => True 7 | ); 8 | 9 | $ch = curl_init(); 10 | 11 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 12 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 13 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 14 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 15 | curl_setopt($ch, CURLOPT_POST, 1); 16 | 17 | $headers = array(); 18 | $headers[] = 'Content-Type: application/json'; 19 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 20 | 21 | $result = curl_exec($ch); 22 | echo $result; 23 | 24 | if (curl_errno($ch)) { 25 | echo 'Error:' . curl_error($ch); 26 | } 27 | curl_close ($ch); 28 | ?> 29 | -------------------------------------------------------------------------------- /php/wayfairsearch.php: -------------------------------------------------------------------------------- 1 | 'wayfair_search', 5 | 'query' => 'doormat', 6 | 'parse' => False 7 | ); 8 | 9 | $ch = curl_init(); 10 | 11 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 12 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 13 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 14 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 15 | curl_setopt($ch, CURLOPT_POST, 1); 16 | 17 | $headers = array(); 18 | $headers[] = 'Content-Type: application/json'; 19 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 20 | 21 | $result = curl_exec($ch); 22 | echo $result; 23 | 24 | if (curl_errno($ch)) { 25 | echo 'Error:' . curl_error($ch); 26 | } 27 | curl_close ($ch); 28 | ?> 29 | -------------------------------------------------------------------------------- /php/amazonquestions.php: -------------------------------------------------------------------------------- 1 | 'amazon_questions', 5 | 'query' => 'B09H74FXNW', 6 | 'parse' => True 7 | ); 8 | 9 | $ch = curl_init(); 10 | 11 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 12 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 13 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 14 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 15 | curl_setopt($ch, CURLOPT_POST, 1); 16 | 17 | $headers = array(); 18 | $headers[] = 'Content-Type: application/json'; 19 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 20 | 21 | $result = curl_exec($ch); 22 | echo $result; 23 | 24 | if (curl_errno($ch)) { 25 | echo 'Error:' . curl_error($ch); 26 | } 27 | curl_close ($ch); 28 | ?> 29 | -------------------------------------------------------------------------------- /php/amazon.php: -------------------------------------------------------------------------------- 1 | 'amazon', 5 | 'url' => 'https://www.amazon.com/dp/B09H74FXNW', 6 | 'parse' => True 7 | ); 8 | 9 | $ch = curl_init(); 10 | 11 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 12 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 13 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 14 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 15 | curl_setopt($ch, CURLOPT_POST, 1); 16 | 17 | $headers = array(); 18 | $headers[] = 'Content-Type: application/json'; 19 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 20 | 21 | $result = curl_exec($ch); 22 | echo $result; 23 | 24 | if (curl_errno($ch)) { 25 | echo 'Error:' . curl_error($ch); 26 | } 27 | curl_close ($ch); 28 | ?> 29 | -------------------------------------------------------------------------------- /nodejs/ecommerce.js: -------------------------------------------------------------------------------- 1 | const response = await fetch( 2 | 'https://scraper-api.smartproxy.com/v2/scrape', { 3 | method: 'POST', 4 | body: { 5 | target: 'ecommerce', 6 | url: 'https://www.walmart.com/ip/Marketside-Pepperoni-Pizza-Traditional-Crust-Extra-Large-44-6-oz-Fresh/579824441?athbdg=L1600&from=searchResults', 7 | device_type: 'desktop', 8 | parser_type: 'ecommerce_product', 9 | geo: 'United States', 10 | headless: 'html', 11 | locale: 'en_us', 12 | parse: 'true' 13 | }, 14 | headers: { 15 | 'Content-Type': 'application/json', 16 | 'Authorization': 'Basic AUTH' 17 | }, 18 | } 19 | ).catch(error => console.log(error)); 20 | 21 | console.log(response) 22 | -------------------------------------------------------------------------------- /php/wayfair.php: -------------------------------------------------------------------------------- 1 | 'wayfair', 5 | 'url' => 'https://www.wayfair.com/rugs/pdp/highland-dunes-gunnell-30-x-18-non-slip-outdoor-door-mat-w005481595.html', 6 | 'parse' => False 7 | ); 8 | 9 | $ch = curl_init(); 10 | 11 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 12 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 13 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 14 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 15 | curl_setopt($ch, CURLOPT_POST, 1); 16 | 17 | $headers = array(); 18 | $headers[] = 'Content-Type: application/json'; 19 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 20 | 21 | $result = curl_exec($ch); 22 | echo $result; 23 | 24 | if (curl_errno($ch)) { 25 | echo 'Error:' . curl_error($ch); 26 | } 27 | curl_close ($ch); 28 | ?> 29 | -------------------------------------------------------------------------------- /php/amazonbestsellers.php: -------------------------------------------------------------------------------- 1 | 'amazon_bestsellers', 5 | 'query' => '2407760011', 6 | 'domain' => 'com', 7 | 'locale' => 'en_us', 8 | 'device_type' => 'desktop', 9 | 'parse' => True 10 | ); 11 | 12 | $ch = curl_init(); 13 | 14 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 15 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 16 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 17 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 18 | curl_setopt($ch, CURLOPT_POST, 1); 19 | 20 | $headers = array(); 21 | $headers[] = 'Content-Type: application/json'; 22 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 23 | 24 | $result = curl_exec($ch); 25 | echo $result; 26 | 27 | if (curl_errno($ch)) { 28 | echo 'Error:' . curl_error($ch); 29 | } 30 | curl_close ($ch); 31 | ?> 32 | -------------------------------------------------------------------------------- /php/ecommerce.php: -------------------------------------------------------------------------------- 1 | 'ecommerce', 5 | 'url' => 'https://www.walmart.com/ip/Marketside-Pepperoni-Pizza-Traditional-Crust-Extra-Large-44-6-oz-Fresh/579824441?athbdg=L1600&from=searchResults', 6 | 'device_type' => 'desktop', 7 | 'parser_type' => 'ecommerce_product', 8 | 'geo' => 'United States', 9 | 'headless' => 'html', 10 | 'locale' => 'en_us', 11 | 'parse' => True 12 | ); 13 | 14 | $ch = curl_init(); 15 | 16 | curl_setopt($ch, CURLOPT_URL, 'https://scraper-api.smartproxy.com/v2/scrape'); 17 | curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword'); 18 | curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 19 | curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); 20 | curl_setopt($ch, CURLOPT_POST, 1); 21 | 22 | $headers = array(); 23 | $headers[] = 'Content-Type: application/json'; 24 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 25 | 26 | $result = curl_exec($ch); 27 | echo $result; 28 | 29 | if (curl_errno($ch)) { 30 | echo 'Error:' . curl_error($ch); 31 | } 32 | curl_close ($ch); 33 | ?> 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Smartproxy 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # eCommerce Scraping API 2 | 3 |
4 |
5 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |