Reading custom values in Ebay RSS feed (XML::RSS module)

Posted by munster on Stack Overflow See other posts from Stack Overflow or by munster
Published on 2010-06-02T16:11:47Z Indexed on 2010/06/02 16:13 UTC
Read the original article Hit count: 568

Filed under:
|
|
|
|

I've spent entirely way too long trying to figure this out. I'm using XML:RSS and Perl to read / parse an Ebay RSS feed. Within the area, I see these entries:

1395 1255

However, I can't figure out how to grab the details during the loop. I wrote a regex to grab them:

@current_price = $item =~ m/\(\d+)\<\/rx\:CurrentPrice>/g;

which works if you place the above 'CurrentPrice' entry into a standalone string, but not while the script is reading through the RSS feed.

I can grab most of the information I want out of the item->description area (# bids, auction end time, BIN price, thumbnail image, etc), but it would be nicer if I could grab the info from the feed without me having to deal with grabbing all that information manually.

If anybody knows how to grab custom fields from an RSS feed (short of writing regexes to parse the entire feed w/o a module), any help / insight would be appreciated.

© Stack Overflow or respective owner

Related posts about perl

Related posts about rss