Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parse(?) some HTML

Status
Not open for further replies.

RodP

Programmer
Jan 9, 2001
109
GB
Hi Everyone,

Can you help / advise as I'm not too sure what search terms / terminology to use when trying to find a program / some script to help me.

I have a website:
in which I want to grab (parse?) the data in the table.

I found a few programs but they seem to use perl but unfortunately I don't have perl and can't install it on this PC. Do you think there is something in Java or VB out there which could grab this little table and add it to a simple csv file?

I'd want to cycle through a number of pages (all the same format) where by just the product number would change. My java is rather limited but I'm willing to give it a shot.

Hope you can help / set me off in the right direction.

Many thanks

RodP

Rod
 
Hi

Both Java and VB are off-topic here. This forum is about JavaScript.

If you want to parse the DOM with JavaScript, I suggest to try Sarissa. But to simply extract the prices, you can use just regular expressions.

Feherke.
 
Hi feherke,

oops - yep - java script or vb script is what I'm looking for. Thanks for the link.

I've had a go using it but struggling a little using it.

-I've tried to build a filter using filterbuilder in the BIN directory but I don't think it's going to ultimately make a csv file out of it.
-I've got go to through a proxy. Does anyone know how you embed the proxy address, username and password in the address to allow it to work? Currently I'm testing it on an htm file saved on my HDD.

Perhaps I'll move this query to VB Scripting forum but if any one else has some more ideas / guidance on how to use Sarissa / help then please do reply.

Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top