Simple Parsing Script

Simple Parsing Script
Hi there I’m looking for someone who can create a simple parsing script for me. What it will need to do is parse all links from a html document and produce new links using some of the extracted data. You’ll also need to include two numeral input boxes (first one being upto 2 decimal places and the second one being no decimals) and their data will be inserted into the url of the html document as $VAR and $VAR2.

So here is the document:
http://www.filleritem.com/iframe.html?q=1.99&r=id&num=15
And the input box data is to go like so:
http://www.filleritem.com/iframe.html?q=$VAR&r=id&num=$VAR2

So for example this is one of the links on the page:
http://www.amazon.com/exec/obidos/ASIN/1554511143/ref=nosim/krisssoccersi-20/

I want it to be rebuilt to display like the following:
http://www.amazon.com/gp/product/1554511143

So the data to be extracted is as follows:
http://www.amazon.com/exec/obidos/ASIN/******TAKE THIS DATA HERE*****/ref=nosim/krisssoccersi-20/

So that has givin us:
1554511143 – let’s call this $DATA

It places the extracted data into the following template as $DATA:
http://www.amazon.com/gp/product/$DATA

Now simply echo all the new clickable links within a php document.

Easy enough job 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *