xSTVNx
Mitglied
Ich habe folgenden RSS-Feed eines Blogspot-Blogs: Veganpassion
Ich möchte dort je Post den Titel, den Permalink, das Erstellungsdatum und dessen 1. Bild (bzw. das Thumbnail des Posts) auslesen.
An Titel, Permalink und Datum komm ich so ran:
Jedoch weiß ich nicht, wie ich an Thumbnail (bzw. das erste Bild) komme... Weiß jemand Rat?
Danke!
xSTVNx
Ich möchte dort je Post den Titel, den Permalink, das Erstellungsdatum und dessen 1. Bild (bzw. das Thumbnail des Posts) auslesen.
An Titel, Permalink und Datum komm ich so ran:
Code:
$feed_url = "http://veganpassion.blogspot.de/";
$feed_url .= '?max-results=999';
$xml = simplexml_load_file($feed_url);
foreach($xml->entry as $item) {
$title = utf8_decode($item->title);
$permalink = $item->link[4]['href'];
$pubdate = $item->published;
$pubdate = strftime("%Y-%m-%d", strtotime($pubdate));
}
Jedoch weiß ich nicht, wie ich an Thumbnail (bzw. das erste Bild) komme... Weiß jemand Rat?
Danke!
xSTVNx