screen-scraper public support

Questions and answers regarding the use of screen-scraper. Anyone can post. Monitored occasionally by screen-scraper staff.

Catching evalError?

Hi (again),

I know this might be a stupid question but I'm having trouble catching an EvalError in a Java script.

Specifically, I'm getting the following error:

An error occurred while processing the script: DP Script - Check Assignment_Appn

How to include Jquery in script

Please Can everyone tell me ,how to include Jquery in script (language=JAVASCRIPT)

How to parse JSON

Script File :

scrapeableFile.setContentType("application/json; charset=utf-8");
           ub=session.getVariable("ID");
           scrapeableFile.setRequestEntity("{\"UB\":"+ub+"}");

LAST RESPONSE :

</head>
<body>

How to scrape just 'top ten' results

I have a need for a 'top ten' list scraped from a golf leaderboard. At the moment I'm scraping the entire field which while only 70 records or so seems wasteful. Is there a way of limiting the number of records scraped to just the top ten?

FYI I'm using the 'write to csv' script given at http://community.screen-scraper.com/script_repository/Write_to_CSV.

Thanks,
Ian

"If-Else" Help

trying to create an if-else script that will write information only if a "COST" is greater than "PRICE".

cost = Float.parseFloat(dataRecord.get("COST"));

{

if (COST >= NEWCOST) {
session.scrapeFile( "CreateColumns" );
}
System.out.println("Grade = " + grade);
}
}

I'm receiving the following error:

ERROR--New Scraping Session: An error occurred while processing the script: Test2

An error occurred while reading in the file

Hi,

I'm having a problem with one specific URL. I'm getting this error "An error occurred while reading in the file bla.com/search...". The weird thing is that I get the following error right after: "The error was bla.com\search\bla..." See the inverted slash?? In the first error it shows the correct URL address and slashes "/" (I've copied it and pasted it in my browser and it worked just fine), but when it clarifies the error with the "The error was..." it uses the inverted slash. Could it has something to do with the problem?

Best

How to create connection to screen scraper from php

Please anyone can tell me that how can I run screen scraper from php.Just small WAP, and how to connect screen scraper to localhost:8778.

Variables

Hi I am trying to collect data from two pages. I'm collecting different variables from each site and using a script to save them to the file however it seems that each time I scrape a new page the data from the first page is forgotten and it is written to my .txt file as "null".

I would like to be able to scrape two pages and write the data to a file once from each page.

For example:

I would like to collect the following "datarecord" from the first page:
title
price

then the second page collect the datarecord variables:
description
UPC

HTTPS

Hi, I'm trying to submit his form through screen scraper:

https://catalog-retail.amazon.com/abis/syh/SearchByAsinOrIdentifier?ld=direct-link&searchTerm=B004TS1IG4&x=75&y=8

I only assume that the method for submitting this form would be similar to that detailed in the "login" tutorial the difference is that obviously this sis a secure HTTPS connection so of course I'm not able to retrieve the transactions through the proxy server.