Is thera setContentAsString() in the API?

Hi:

There's a 'getContentAsString()' function listed in the API documentation, but I can't find a comparable setContentAsString(). (http://www.screen-scraper.com/support/docs/api_documentation.php). There is such a function mentioned in connection with the Proxy Server (http://www.screen-scraper.com/support/docs/using_scripts_in_proxy_server...).

Since I'm not running a proxy server, I'm a bit confused as to whether I can use this in a scraping session. the 'getContentAsString()' function works fine if I invoke it in a script before pattern is applied.

I guess the best way to find out right away is to "Ask the computer". Now having done that, the answer from the computer is "No, you can't do that."

 The error message was: Error in method invocation: Method setContentAsString( java.lang.String ) not found in class'com.screenscraper.scraper.ScrapeableFile' : at Line: 16.

I'm tring to do a search-replace operation on the incoming byte stream and of course need to feed the byte stream back as input to the scraping session.

Thanks in advance for your help.

-- Roy Zider

Is thera setContentAsString() in the API?

Todd:

Yes, I've since found that link (I have no idea how) and have incorporated it in my script.

Thanks.

-- Roy

Is thera setContentAsString() in the API?

Hi Roy,

You'll probably want to use getLastScrapedData and setLastScrapedData instead. The technique is described in a bit more detail here;

http//www.screen-scraper.com/support/faq/faq.php#WhiteSpace

Just let me know if I can clarify anything on that.

Thanks,

Todd