Idealo
Idealo can be targeted using direct URL, by providing the query parameter to the Idealo search bar, or by providing Idealo product ID
Target: idealo(not parseable)
Required parameters: url
Target by supplying direct URL link.
curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"idealo\", \"url\": \"https://www.idealo.co.uk/compare/200584791/sony-playstation-5-ps5-digital-edition.html\", \"parse\": \"False\"}"
import requests
task_params = {
'target': 'idealo',
'url': 'https://www.idealo.co.uk/compare/200584791/sony-playstation-5-ps5-digital-edition.html',
'parse': False,
}
username = 'SPusername'
password = 'SPpassword'
response = requests.post(
'https://scrape.smartproxy.com/v1/tasks',
json = task_params,
auth = (username, password)
)
print(response.text)
<?php
$params = array(
'target' => 'idealo',
'url' => 'https://www.idealo.co.uk/compare/200584791/sony-playstation-5-ps5-digital-edition.html',
'parse' => False
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://scrape.smartproxy.com/v1/tasks');
curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
echo $result;
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
?>
Target: idealo_search(not parseable)
Required parameters: query
Target by supplying query parameter to the Idealo search bar.
curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"idealo_search\", \"query\": \"playstation 5\", \"parse\": \"False\"}"
import requests
task_params = {
'target': 'idealo_search',
'query': 'playstation 5',
'parse': False,
}
username = 'SPusername'
password = 'SPpassword'
response = requests.post(
'https://scrape.smartproxy.com/v1/tasks',
json = task_params,
auth = (username, password)
)
print(response.text)
<?php
$params = array(
'target' => 'idealo_search',
'query' => 'playstation 5',
'parse' => False
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://scrape.smartproxy.com/v1/tasks');
curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
echo $result;
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
?>
Target: idealo_product(not parseable)
Required parameters: query
Target by supplying Idealo product ID directly.
curl -u SPusername:SPpassword -X POST --url https://scrape.smartproxy.com/v1/tasks -H "Content-Type: application/json" -d "{\"target\": \"idealo_product\", \"query\": \"200584791\", \"parse\": \"False\"}"
import requests
task_params = {
'target': 'idealo_product',
'query': '200584791',
'parse': False,
}
username = 'SPusername'
password = 'SPpassword'
response = requests.post(
'https://scrape.smartproxy.com/v1/tasks',
json = task_params,
auth = (username, password)
)
print(response.text)
<?php
$params = array(
'target' => 'idealo_product',
'query' => '200584791',
'parse' => False
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://scrape.smartproxy.com/v1/tasks');
curl_setopt($ch, CURLOPT_USERPWD, 'SPusername' . ':' . 'SPpassword');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);
$headers = array();
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
echo $result;
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);
?>
Updated about 2 months ago