screen-scraper support for licensed users
Error message when invoking screen-scraper from the Command line
I am trying to invoke a scraping session called "My Session" from the command prompt. The syntax I used was
cd C:\Program Files\screen-scraper enterprise edition
"jre\bin\java" -jar screen-scraper.jar -s "My Session"
This gave the following error:
Initializing screen-scraper...
Running script "My Session"...
An error occurred while processing the script: My Session
.
The error message was: class bsh.EvalError (line 12): session .setVariable ( "IN
PUT_FILE" , "W:/Documents/Data/inputdata.csv" )
multitrheads issue
Hi guys,
Im new in screen scraper, and I stuck on some stage. Probably my problem is simply to solve but I have no idea where should I go. Im using 10 sessions, and seems like screen scraper is perfectly working with 10 different sessions but, cant handle 10 the same sessions at the time.
Can somebody help me with this?
Thanks
Radek.
Call extractor pattern via a script
Hi,
I probably missed this part in the tutorials but I really don't find the way how to call an extractor pattern from a script.
Let's define 3 extractor patterns, e_p_1, e_p_2, e_p_3. Now, e_p_1 should call e_p_2 "once if pattern matches" or call e_p_3 "once if no matches".
I thought, the way to achieve this would be calling for each scenario a script that calls the appropriate extractor pattern. How do I do that? The extractor patterns are in the same scrapeable file.
Thank you for your help,
Edgar
Killing runnable server session using PHP?
We're using PHP to invoke our scrapes on the SS daemon running on a Linux server. It would help a lot if we could kill individual scraping sessions without having to take down the complete dameon, which leads to that all scraping sessions needs to be imported again.
Tried to find a way to achive this in the PHP via the documentation but did not find any appliable commands.
Is there such a command?
Change Content-Type for email sending
Hi,
screen-scraper uses "Content-Type: text/plain; charset=us-ascii". Can I change it to this for example "Content-Type: text/plain; charset=UTF-8"?
Thank you in advance and cheers,
Edgar
Cookie Tracking is Misbehaving
I'm running 5.0.13a and trying to track cookies on a page that I am scraping.
The page sets two cookies but the session.getCookies returns an array with a length of 0. Trying to see where the problem lay I used the session.setCookie to create a cookie to clash with one of the set cookies by the page. The two did not touch.
It appears that the session cookies are not connected to the site's cookies.
Freeze on double click in sub-extractor pattern
I've finally got reproducible steps on a freezing bug that's been bothering me for a while. I've attached a scrape to import into screen-scraper, then follow these steps:
1. Open the "Details Page" scrapeable file.
2. Select the "Sub-Extractor Patterns" tab on the sole extractor pattern.
3. On the first sub-pattern, double click in the white space next to the ADDRESS token in the first line, after the br tag.
Results: Screen-scraper freezes and I have to use Task Manager to kill it. I've lost work a couple of times doing this by accident while trying to open a token dialog.
Error while running NetBeans program.
Hi,
we are using Netbeans application to pass inputs to the scraping session in the scraper tool.When i run Netbeans program, error is populated.Following is the error description which i got.
java.lang.NoClassDefFoundError: acn/wde/Ace5 (wrong name: com/acn/wde/Ace5)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
Downloading gzip XML file before scraping
Greetings Scrapers,
I am about to scrape an XML file which contains around 10 000 records, is gzipped and residing on a domain like http://ww.domain.com/xmlfile.gz
Is there a way to configure screen-scraper to download and unzip that file locally before initiating the scraping session?
Best,
Importing scripts via SOAP or the command line
I was wondering if it is possible to import a new script into screen-scraper via the SOAP update command. If the script does not already exist, will it be created?