You are here:  » How do I bypass the first line of a feed


How do I bypass the first line of a feed

Submitted by jimpoo on Tue, 2006-04-04 16:39 in

Hi
LinkShare's datafeeds format:
the first line contains the merchant's based information and the feed updated time, starts from the second line are the mayjor product information.

For example:
HDR|1154|Magazines.com, Inc.|2006-04-04/16:16:34
...first record...

Well, how can I bypass the first line when I trying to register the datafeed?
I found no way to do this.

Please advise.

Thank you,
Jimpoo

Submitted by searley on Tue, 2006-04-04 16:43

You could try changing the feed type during registration the Qutoted - Header Row

This is intended for use when the first line of the feed contains the names of the fields

Submitted by support on Tue, 2006-04-04 16:49

Hiya,

Thanks for bringing this to my attention. I'll get straight on to an upgrade to Magic Parser to autodetect the "HDR" and enforce a skip of the first line of the text.

I'll try and get it online tomorrow and report back in this thread when it's ready.

Apologies for the inconvenience,

David.

Submitted by support on Wed, 2006-04-05 09:31

Hi again,

I have now upgraded Magic Parser so that it can read Linkshare feeds.

This has been achieved by adding a 4th optional parameter to the CSV format string specification; indicating the number of rows at the top of the file to skip over before parsing begins. The "HDR|" signature is detected in the auto-detect logic and the correct format string for Linkshare feeds is picked up during feed registration step 1.

This update is now in the version of MagicParser.php included in the Price Tapestry distribution. If you have made modifications to your Price Tapestry installation, the easiest thing to do is download Magic Parser from on its own from here, extract the file and overwrite the version in your Price Tapestry includes directory.