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
85f06418
Commit
85f06418
authored
Apr 18, 2019
by
Aria Givi
Browse files
results now correctly recieved
parent
7e9e6621
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Models/parserSkripte/Kelkoo.php
View file @
85f06418
...
...
@@ -29,7 +29,6 @@ class Kelkoo extends Searchengine
$results
=
$content
->
xpath
(
'//response/result[@name="response"]/doc'
);
foreach
(
$results
as
$result
)
{
die
(
$reuslt
);
$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
();
...
...
@@ -76,7 +75,7 @@ class Kelkoo extends Searchengine
// replace " " by "+"
$urlPath
=
str_replace
(
" "
,
"+"
,
$urlPath
);
// 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
$s
=
$urlPath
.
"&"
.
$URL_partner
.
"="
.
$partner
.
"&"
.
$URL_ts
.
"="
.
$time
.
$key
;
...
...
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