Commit 85f06418 authored by Aria Givi's avatar Aria Givi

results now correctly recieved

parent 7e9e6621
...@@ -29,7 +29,6 @@ class Kelkoo extends Searchengine ...@@ -29,7 +29,6 @@ class Kelkoo extends Searchengine
$results = $content->xpath('//response/result[@name="response"]/doc'); $results = $content->xpath('//response/result[@name="response"]/doc');
foreach ($results as $result) { foreach ($results as $result) {
die($reuslt);
$result = simplexml_load_string($result->saveXML()); $result = simplexml_load_string($result->saveXML());
$title = $result->xpath('/doc/arr[@name="artikelName"]')[0]->{"str"}->__toString(); $title = $result->xpath('/doc/arr[@name="artikelName"]')[0]->{"str"}->__toString();
$link = $result->xpath('/doc/arr[@name="artikelDeeplink"]')[0]->{"str"}->__toString(); $link = $result->xpath('/doc/arr[@name="artikelDeeplink"]')[0]->{"str"}->__toString();
...@@ -76,7 +75,7 @@ class Kelkoo extends Searchengine ...@@ -76,7 +75,7 @@ class Kelkoo extends Searchengine
// replace " " by "+" // replace " " by "+"
$urlPath = str_replace(" ", "+", $urlPath); $urlPath = str_replace(" ", "+", $urlPath);
// format URL // format URL
$URLtmp = $urlPath . "&" . $URL_partner . "=" . $partner . "&amp" . $URL_ts . "=" . $time; $URLtmp = $urlPath . "&" . $URL_partner . "=" . $partner . "&" . $URL_ts . "=" . $time;
// URL needed to create the token // URL needed to create the token
$s = $urlPath . "&" . $URL_partner . "=" . $partner . "&" . $URL_ts . "=" . $time . $key; $s = $urlPath . "&" . $URL_partner . "=" . $partner . "&" . $URL_ts . "=" . $time . $key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment