Web Scraper and Web Macros FAQs

Page History: What are optional fields?


Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2008/04/02 23:55


Optional fields are not what you think. You should only check fields as optional when you HAVE to. Yes this checkbox should not be so seemingly innocuous, but it is and you should hardly ever check it. Each optional field will increase the extraction time by a factor of 2.

You should only check a field optional if its tags are similar to other fields and you sometimes want to act as if the field is not there at all. For example, say that we have three fields to extract name, city, and state from the following HTML:

<BR>Craig<BR>Junior</TD><BR>Phoenix<BR>AZ<BR></TD>

We want "Craig Junior" for the name field, so we choose the start tag to be <BR> and the end tag to be </TD>. The start tag for city is <BR> and the end tag is <BR>. The same tags are used for state.

However, sometimes the name is not there:

<BR>Phoenix<BR>AZ<BR></TD>

So, <BR>Phoenix<BR>AZ<BR> gets extracted for name, and city and state are left blank.

However, if you made the name field optional, Web Scraper will get the results above with two out of three fields blank as well as try an extraction without the name field and see that only one of the three fields is left blank. It then uses the results from the second extraction to leave you will the maximum amount of non-blank fields.
PoweredBy
Create a Page | Administration | File Management | Login/Logout | Language Selection | Your Profile |Create Account