Help for a beginning scraper?

I have something I need to scrape like this:

I'm trying to get an extractor to match the options in the first select statement (though later, I'll need to match the second one - the second is populated based on the selection in the first). Ii then need to set up a sub-extractor to get the Value and Text out of each option.

If I do

 <option ~@DATARECORD@~</option>

I get all the options, including the ones I don't want.

If I try

 <select name="whatIWant">~@DATARECORD@~</select>

and then set up sub-extractors like
 <option Value="~@DATA_ID@~"

I only get the first option value.

Is there an easy way to do what I'm trying to do?

Thanks!

Adam

Help for a beginning scraper?

Hi Adam,

You're definitely on track, but the key here is to use the scrapeableFile.extractData method ([url]http://www.screen-scraper.com/support/docs/api_documentation.php#extractData[/url]). Once you've extracted the list of options for the drop-down you want, you would then apply a pattern in a script to just those option items.

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

Kind regards,

Todd Wilson