How to download the Response data from a scraping file
When I run a scraping session, I look at the "Last Response" tab in one of the scraping files and see data that I would like to download to a file on the server. I have done this successfully before by using a script like this:
currentURL = scrapeableFile.getCurrentURL();
session.downloadFile(currentURL, "C:\\ScrapeWork\\FreddieMacMorton.csv");
However I added this script to the scraping file that had the data I want and it downloaded *different* data! I ran the scraping session and the scraping file that has the data has added the script that downloads the data. Several of the pages in the website have the same URL, but the content changes. The page I am downloading is one of these. What is the proper way to download the "Last Response" data from a scraping file? Why does this script work for a previous scraping session but not this one?
Try
Try this:
http://community.screen-scraper.com/API/saveFileOnRequest
It works!
Thanks, that did the trick.