Skip to content
Snippets Groups Projects
Commit d3664a87 authored by Karl's avatar Karl
Browse files

Die Ebay-Produktsuche ist jetzt relativ instabil eingebaut, da sie nur das RSS parsed.

parent e5ee2849
No related branches found
No related tags found
2 merge requests!265Development,!263Resolve ""Add to watch list" als Preis bei Ebay Produktsuche"
...@@ -33,7 +33,13 @@ class Ebay extends Searchengine ...@@ -33,7 +33,13 @@ class Ebay extends Searchengine
$title = $result->{"title"}->__toString(); $title = $result->{"title"}->__toString();
$link = $result->{"link"}->__toString(); $link = $result->{"link"}->__toString();
$anzeigeLink = $link; $anzeigeLink = $link;
$descr = strip_tags($result->{"description"}->__toString()); if(preg_match("/.*?href=\"(.+?)\".*src=\"(.+?)\".*<strong><b>EUR<\/b> (.+?)<\/strong>.*?<span>(.+?)<\/span>.*/si", $result->{"description"}->__toString(), $matches) === 1);
$descr = "Ebay-Auktion: l&auml;uft bis " . $matches[4] . " | " . $matches[3] . " &euro;";
$image = $matches[2];
# die($result->{"description"}->__toString());
# $descr = strip_tags($result->{"description"}->__toString());
# $descr = $result->{"description"}->__toString();
# .*?href="(.+?)".*src="(.+?)".*<strong><b>EUR<\/b> (.+?)<\/strong>.*?<div>(.+?)<\/div>.*
$this->counter++; $this->counter++;
$this->results[] = new \App\Models\Result( $this->results[] = new \App\Models\Result(
$this->engine, $this->engine,
...@@ -42,7 +48,9 @@ class Ebay extends Searchengine ...@@ -42,7 +48,9 @@ class Ebay extends Searchengine
$anzeigeLink, $anzeigeLink,
$descr, $descr,
$this->gefVon, $this->gefVon,
$this->counter $this->counter,
false,
$image
); );
$count++; $count++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment