Gossamer Forum
Home : General : Perl Programming :

Amazon script, need help

Quote Reply
Amazon script, need help
Hi,

Somewhere on these boards I read someone's suggestion to use altavista.cgi for searching amazon.

I had made little modifications and it works fine.
www.gldev.com/cgi-bin/amazon.cgi?query=hello

I'm pretty bad at perl so i wanted to ask if anyone could help me change the design of the results.

So far i just made it change the url of the book to add my tag.

Is there any way to cut off the tables from the html with perl?

The page is set up like this
<table> top navigation </table>
<table>
<tr>
<td> left nav <td><td> results </td>
</tr>
</table>

What i want to do is remove the top and left navigation.

Is it possible to use regular expressions like =~ s/<table anything /table>/ /g; To remove those parts.

I hope this is clear enough.

Any help is appreciated.

(i changed all the borders to 1 so it is easier to understand how the page is constructed)

[This message has been edited by GL (edited April 02, 1999).]
Quote Reply
Re: Amazon script, need help In reply to
I just found the answer on UltimateBB forum.

Modifying was pretty easy after that.

www.gldev.com/cgi-bin/amazon1.cgi

Quote Reply
Re: Amazon script, need help In reply to
sorry double posting

[This message has been edited by GL (edited April 02, 1999).]
Quote Reply
Re: Amazon script, need help In reply to
Can someone post the Amazon script or mail it to me? Thanks it looks great!

Geoffrey
mgm@ok.cz
Quote Reply
Re: Amazon script, need help In reply to
I am interested in the Amazon script, as well.

By the way, GL, your site looks great!

Victor
vtolbert@mindspring.com
Quote Reply
Re: Amazon script, need help In reply to
Hi

I decided to post the source after a couple of people have emailed me asking for it.

But I would like to warn you that the script is very unstable and not finshed. It can probably be called only a template for the real script.

It probably can be done in a much better way but I have a very limited knoweledge of Perl and couldn't do it.

I warn you again you the code at your own risk. It will probably mess up a lot of times.

- one big bug i noticed is when a person enters an exact title of the book into the search box the html screws up

Here is the link: http://www.GLdev.com/...amazon1.cgi?source=1

I hope this will help some real programmers (unlike me Smile) make a great freeware amazon script.

------------------
Greg L
gregl@email.com
www.GLdev.com


Quote Reply
Re: Amazon script, need help In reply to
Don't bother looking at my script.
I just saw the new amazon script post and it points to a fully working and customizable (and yes freeware) amazon script.

http://www.computer-mentors.co.uk/download.html