A couple of questions...

I'm kinda newbie and would appreciate any help at all...

I'm running on XP and am trying to scrape some addresses off a website. I get an error (below) in my log when I try and use a script to write the data to a file....

I also would like to scrape the site roboting through the urls like this...

page.htm?number=1
page.htm?number=2
page.htm?number=3
...etc..etc

Is this possible??

Any help appreciated

Gwilym

--------------------------------------------
File from Wine2: Processing scripts after a file is scraped.
Processing script: "Export to file"
Writing data to a file.
File from Wine2: An error occurred while processing the script: Export to file
File from Wine2: The error message was: Scripting engine failure
Microsoft VBScript runtime error: 5:0
Permission denied

(scode=0x800a0046 wcode=0x0)

Processing scripts after scraping session has ended.
Processing script: "Export to file"
Writing data to a file.
wine scrape: An error occurred while processing the script: Export to file
wine scrape: The error message was: Scripting engine failure
Microsoft VBScript runtime error: 5:0
Permission denied

(scode=0x800a0046 wcode=0x0)

Scraping session finished.
--------------------------------------------

A couple of questions...

Hi Gwilym,

You'll designate the file path in your script. If you're just giving it the name of the file (e.g., "myfile.csv") it would be created inside of the folder where screen-scraper is installed (e.g., "C\Program Files\screen-scraper professional edition\"). If you wanted to paste in the contents of your script I might have a better suggestion.

Kind regards,

Todd

Writting to file

Thanks Todd,

Any idea what the path is it would be trying to write the file to, should I create a file first it can append to?

Much appreciated,

Gwilym

A couple of questions...

Hi,

Regarding the errors you're seeing when you run your scraping session "Permission denied", that would simply be a result of screen-scraper not having permission to write to the file you've indicated. It may also be that the path to the file you're trying to write is invalid.

The approach you'd like to take cycling through different values in a URL is a common one. We've actually created a tutorial that gives an example of doing something similar: here.

Kind regards,

Todd Wilson