Mailinglisten-Archive |
Thomas Wenskat wrote:
> Sebastian hat leider keine Zeit, sich jetzt darum zu kümmern.
Hier ein 5 Minuten Hack, der bei mir momentan mit Büchern, CDs und
DVDs funktioniert:
function parse_data($data) {
$this->author = strip_tags(
$this->my_substr("von ", "\n</", $data)
);
if (empty($this->author)) {
$this->author = $this->my_substr(
"index=music&field-artist=", "/", $data);
}
if (empty($this->author)) {
$this->author = str_replace("%20",
" ",
$this->my_substr("field-director=", "/", $data));
}
$this->price = str_replace(" ", "",
strip_tags($this->my_substr("Preis:", "</",
$data)));
$this->title = $this->my_substr("Amazon.de, auf einen Blick: ",
"\n", $data);
}
Image URLs habe ich auf die Schnelle nicht hinbekommen.
HTH,
Sebastian
--
sebastian bergmann sb_(at)_sebastian-bergmann.de
http://www.sebastian-bergmann.de
bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de
php::bar PHP Wiki - Listenarchive