TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-19-2012, 05:48 AM   #1 (permalink)
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Default 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!
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues Karl Feedback 38 04-06-2013 05:03 AM
Get Data from XML Feed buildakicker General 1 01-05-2012 10:14 PM
RSS Parsing + multiple feeds?? marxx General 3 06-12-2009 02:12 PM
Parse XML categories and create RSS feed out of it... buildakicker General 3 01-21-2009 06:29 PM
How to fix 95% of the cross-compatibility issues Wildhoney XHTML, HTML, CSS 25 12-15-2007 04:38 AM


All times are GMT. The time now is 05:54 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design