Reading custom values in Ebay RSS feed (XML::RSS module)
- by munster
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.