screen-scraper public support
How to outWrite current T/D stamp to a field in a record being written to disk?
Using interpreted JAVA
Dunno how to generate current time/date. I would like to write something like "2010-07-13 22:14:59P" to a field in a record. Here's the code I am now using to write data to text file...
Scripting: How to include an If-Then statement in a script intended to write text to a file?
Here is a line I wish implemented if the value of a token is under 100:
out.write( dataRecord.get( "RANK_PINunder100" ) + "\t" );
Here is a line I wish implemented if the value of a token is 100 or more:
out.write( dataRecord.get( "RANK_PIN100Plus" ) + "\t" );
One of these datarecord field values will be null and the other will have a value. RANK_PINunder100 field holds values 1-99 and RANK_PIN100Plus holds values 100 and over.
Where do I find the token properties "advanced" tab?
Am looking for the token properties settings interface. Am talking about the tokens appearing in the extractor patterns. For example...
Leading Pattern~@MyToken@~Trailing Pattern
I understand there is a Token Properties settings page and that it has an "Advanced" settings tab. Can someone tell me how to navigate to it? I see an "Advanced" tab in the scraping session user interface. But I'm having trouble finding a Token Properties settings page and its "Advanced" settings tab.
Thanks.
Someone pls suggest how to modify the attached SSS file to automate snatching records from all categories on YellowPages.com
Attached is a working SSS file that can be used to snatch useful fields of data from records appearing on YellowPages.com in Thomasville, NC listing nearly 180 Thomasville-area Auto Repair Service companies that lie within a 10-mile radius of that town.
What if the extractor pattern changes somewhere down the list of records being scraped?
There is a set of pages containing records in which one of the fields is a number. I created an extractor pattern to snatch this number. The numbers start at 1 and are sequentially incremented. I know that I could automatically fill in this known information after-the-fact. But I would like to address the issue I'm running into. The extractor pattern changes when the numbers I'm extracting go from 2-digits to 3-digits. Here's what I mean:
modifying value snatched by TOKEN inside leading & trailing extractor pattern
I'm getting values in my company name token like "Whitman Speed
RE: Extractor Pattern - Only getting one data set
MacBook
System: OS X
Version: 10.6.3
Screen-Scraper Basic
AIM: To compile a list of wineries (just their names) in Spain using the Spanish YellowPages website.
Working with Captcha from external programs
Hello,
I've read several posts in this forum on how to work with dynamic user input that are required during scrapes (ex. captcha, passwords). The general solution seems to be to use JOptionPane.showInputDialog to popup a dialog box and get the user input.
An error occurred while preparing to issue the HTTP request: null
All,
I've got a scrapable file which is generating the following error:
Are there any logs for tracking down why I'm getting this error message?
Thanks,
James
How to add http parameters to a scrape file
Hi,
How do I add parameters to a scrapeFile that is only about to be invoked? The scrapeableFile.addHTTPParameter() function only adds parameters to the currently executing scrapeFile. What I want to do is setup all the parameters prior to doing a session.scrapeFile().
Is the only way to do it -- save it to some session variable; call the scrapefile; at the "execute before file is scraped" script, retrieve session variables and load via addHTTPParameter()? Is there a simpler way of doing it prior to actually calling the scrapeFile?
Dick