Results 1 to 5 of 5
  1. #1
    Roll Tide mobilebadboy's Avatar
    Join Date
    January 18th, 2005
    Location
    Mobile, Alabama
    Posts
    1,220
    Need someone familiar with MagpieRSS
    Ever since I found MagpieRSS a long time ago it has always been my favorite tool for syndicating RSS/XML on my sites. It works very well....as long as the feed has the standard <item> tags. The items usually have the standard <title>, <url> and <description> tags as well.

    The one thing I can not get it to do is parse any feeds that don't have those tags. I've tried numerous feeds with all sorts of tags and unless the items start with, well, <item> it will not parse them. I've tried various methods all of which never worked.

    Does anyone know how to make this thing parse a feed no matter what the tags are?

    Shawn Kerr (.com) | Disney World | SEC Football

  2. #2
    Not Verif-Lidated infoTim's Avatar
    Join Date
    January 18th, 2005
    Location
    Sunny Florida
    Posts
    1,021
    The file rss_parse.inc is specifically looking for "item" or "entry". I guess you could always add another condition there for the tag you're encountering.

    - Tim
    Tim
    consultant by day, affiliate by night

  3. #3
    Roll Tide mobilebadboy's Avatar
    Join Date
    January 18th, 2005
    Location
    Mobile, Alabama
    Posts
    1,220
    Yeah, I tried altering those lines (I found 2).

    elseif ($el == 'item' or $el == 'entry' or $el == 'cc')

    and

    if ( $el == 'item' or $el == 'entry' or $el == 'cc' )

    But that didn't make any difference. Do I need to clarify a new variable here too?

    if ( $el == 'channel' )

    Because it's not a channel either. This is what I'm mostly after:

    http://xoap.weather.com/weather/local/USAL0372?cc=*

    So would if ( $el == 'channel' or $el == 'weather' ) work? Or is there more I need to change?

    Shawn Kerr (.com) | Disney World | SEC Football

  4. #4
    Not Verif-Lidated infoTim's Avatar
    Join Date
    January 18th, 2005
    Location
    Sunny Florida
    Posts
    1,021
    It looks like you'll also need to add a condition to identify the "weather" feed type (around line 217 in my copy of that file) where it's checking for RSS, RDF, and Atom. The changes might get a bit more extensive after that since it probably uses those values. If I get a chance I'll take a peek at it.

    I wrote something similar recently to pull weather data from NOAA's XML service, but I used GetXMLTree and some of the other functions to do it since the weather data isn't very RSS-like.

    - Tim
    Tim
    consultant by day, affiliate by night

  5. #5
    Roll Tide mobilebadboy's Avatar
    Join Date
    January 18th, 2005
    Location
    Mobile, Alabama
    Posts
    1,220
    I've got it working with a really old backend parser I was originally using before I found Magpie. It just involves a lot more code but it allows you to define the main element/tag. Actually a lot less code, but more code to define the output, it's not as simple as the basic Magpie parse (example) method.

    I looked at what you were talking about and, yeah, it seems like once I add that new condition I'd have to follow through and continue defining new variables for it through out the code.

    Shawn Kerr (.com) | Disney World | SEC Football

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Anyone Familiar with nonprofitdata?
    By gcarson in forum Unethical Merchants
    Replies: 2
    Last Post: July 19th, 2011, 07:30 AM
  2. Anybody familiar with Imageleet?
    By davidh in forum Domains & Hosting
    Replies: 0
    Last Post: July 8th, 2010, 09:37 PM
  3. Anybody familiar with these skeezers?
    By davidh in forum Search Engine Optimization
    Replies: 8
    Last Post: December 29th, 2006, 04:58 PM
  4. Are you familiar with Pingdom.com?
    By MoneyBusiness in forum Midnight Cafe'
    Replies: 2
    Last Post: October 21st, 2006, 05:09 PM
  5. Does this sound familiar to anyone else?
    By swingtrader in forum PartnerWeekly
    Replies: 8
    Last Post: May 9th, 2006, 01:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •