When Patterns Don't Match

Ok, I've scraped a page and the pattern doesn't match. (which is cool, cuz when there's data there, it matches fine and does what I want)

What I want to have happen is when the extractor pattern matches, I want it to print that info to a file (which it does), but when it doesn't match, it does not execute the print to file script??

I've checked that the token "is optional" and it still doesn't make any difference. :(

I'm attempting to use "if( scrapeableFile.noExtractorPatternsMatched() )" within the print to file script, but since the script is not executed, it no workie. ;)

Any advise?

When Patterns Don't Match

Hi todd, thanks for the offer, but I've managed to solve the problem without using the "if( scrapeableFile.noExtractorPatternsMatched() )"

Using the code you provided in my other thread (String Contains A Specific Word? -- which I was in the midst of implementing when you offered to have a look at my scraping session), I set a variable to "NULL" and tested it against what was scraped and got it to perform exactly how I want it to.

Thanks again,

Joey

When Patterns Don't Match

Hi Joey,

Could you email me your scraping session so that I can take a closer look? You can export your scraping session using the instructions found here http//www.screen-scraper.com/support/docs/importing_and_exporting_objects.php . It would also be helpful if you could provide a description on how I can make it work and not work (i.e., to reproduce the problem).

Best,

Todd Wilson
[email protected]