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
cceeb3bb
Commit
cceeb3bb
authored
Dec 20, 2016
by
Dominik Hebeler
Browse files
Fehler im Parser-Skript behoben
parent
62119afd
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Models/parserSkripte/Mg_produkt2.php
View file @
cceeb3bb
...
...
@@ -24,13 +24,15 @@ class Mg_produkt2 extends Searchengine
}
$results
=
$content
->
xpath
(
'//response/result[@name="response"]/doc'
);
foreach
(
$results
as
$result
)
{
$result
=
simplexml_load_string
(
$result
->
saveXML
());
$title
=
$result
->
xpath
(
'/doc/arr[@name="artikelName"]'
)[
0
]
->
{
"str"
}
->
__toString
();
$link
=
$result
->
xpath
(
'/doc/arr[@name="artikelDeeplink"]'
)[
0
]
->
{
"str"
}
->
__toString
();
$anzeigeLink
=
parse_url
(
$link
);
parse_str
(
$anzeigeLink
[
'query'
],
$query
);
$anzeigeLink
=
$query
[
'
di
url'
];
$anzeigeLink
=
$query
[
'url'
];
$descr
=
$result
->
xpath
(
'/doc/arr[@name="artikelBeschreibung"]'
)[
0
]
->
{
"str"
}
->
__toString
();
$image
=
$result
->
xpath
(
'/doc/arr[@name="artikelImageurl"]'
)[
0
]
->
{
"str"
}
->
__toString
();
$this
->
counter
++
;
...
...
Write
Preview
Markdown
is supported
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