Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
2fa0c4da
Commit
2fa0c4da
authored
Aug 04, 2016
by
Karl
Browse files
Die Ebay-Produktsuche ist jetzt relativ instabil eingebaut, da sie nur das RSS parsed.
parent
02d03932
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Models/parserSkripte/Ebay.php
View file @
2fa0c4da
...
...
@@ -33,7 +33,13 @@ class Ebay extends Searchengine
$title
=
$result
->
{
"title"
}
->
__toString
();
$link
=
$result
->
{
"link"
}
->
__toString
();
$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äuft bis "
.
$matches
[
4
]
.
" | "
.
$matches
[
3
]
.
" €"
;
$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
->
results
[]
=
new
\
App\Models\Result
(
$this
->
engine
,
...
...
@@ -42,7 +48,9 @@ class Ebay extends Searchengine
$anzeigeLink
,
$descr
,
$this
->
gefVon
,
$this
->
counter
$this
->
counter
,
false
,
$image
);
$count
++
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment