Scraping with iMacros scripting and VBscript

l3msip

New member
Dec 18, 2009
453
8
0
I need to extract the details of about 500 products from a clients old hosted e-commerce site. No access to database etc.

I have iMacros scripting (heard ubot is better, but hey i have iMacros, i dont have ubot!) but i've never really used it much, and the documentation isnt great.

As different products have different amounts of data (one might have 3 purchase options, one might have 20) I need to include some kind of conditional statements (basically keep extracting data intill you reach the end of the table)

What confuses me is when to use a macro and when to use vbs.

This example shows how to make an extraction loop with vbs:
http://forum.iopus.com/_uploads/extraction2-ScriptedExtraction.htm

It uses vbs to process the data (in this example just show it in a message box) but all the macros ive done before use the macro to process the data, eg writting it to a text file.
How do i tie this all together so the whole process writes to one file?

I tried just getting the vbs to write to the same file i get the macros to write to, but it then overwrites everything!!

As you can tell im over my head, i am just about getting to grips with php, but i have never written anything in vb.

Anyone fluent in imacros and vbs willing to point me in the right direction?

I would just put the job on elance or similar, but the scraping needs to be done form the Backend to get all the data, and there is no user levels support for this system, so i would need to give full admin access to my clients site, which is not a good idea!
 


I'd be able to do this for you (not in VB, but I suppose you don't really care as long as it works). PM me if you're interested :)
 
If you already know a bit of php use that. Check out Rage9's blog or smaxors blog for some good tutorials on Curl and you'll have that shit scraped up in no time.
 
@Mattseh pm sent

@Gutterseo
Yeah i know some php, but the backend of this site (scraping needs to be done from the backend to get all the required data) uses some funky javascript which put me off trying to code a php scraper from scratch.

Getting somewhere with the VBS now, its not that hard to pickup once you get your head round it.
Will checkout those blogs though.
Thanks