TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Parsing Issues... Trying to get IMG from within ID of RSS feed (http://www.talkphp.com/general/6133-parsing-issues-trying-get-img-within-id-rss-feed.html)

buildakicker 02-19-2012 05:48 AM

Parsing Issues... Trying to get IMG from within ID of RSS feed
 
Hi all,

I am trying to get the Avalanche Danger Rating from here:
http://www.shastaavalanche.org/advis...=feed&type=rss

I have been using SimpleHTMLDom. Sometimes it works great, but as the selectors get deeper, I run into issues.
PHP Code:

<?php 
include('simple_html_dom.php');
$html file_get_html('http://www.shastaavalanche.org/advisories/advisories/avalanche-advisory?format=feed&type=rss');
$data =  $html->find('div[class=feedEntryContent]');
foreach(
$data as $info)
    echo 
$info->find('img'0)->plaintext "<br>";
    
$html->clear();
?>

All I would like to get is the image:
Avalanche Danger Rating* for today: High|Moderate|Low

Any help? Thanks!


All times are GMT. The time now is 07:03 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0