<TR bgColor=#......> <TD></TD> <TD><B><FONT color=#befefe>Movie Name</FONT></B> Movie Length<BR> Show Times</TD>
and the last pattern is immediately followed by<TABLE class=normal cellSpacing=0 width="100%" align=center border=0> <TBODY>
</TR></TBODY></TABLE><BR></FONT></TR></TBODY></TABLE></TD></TR><TR><TD colspan="2">
Adding in the pattern: and definition: fields will result in:BEGIN HEADER source:http://shuetech.com/minetheweb/demo/docs/mocksites/cinema/index.htm BEGIN INFORMATION BEGIN ACTION startafter: <TABLE class=normal cellSpacing=0 width="100%" align=center border=0> <TBODY> | endat: </TR></TBODY></TABLE><BR></FONT></TR></TBODY></TABLE></TD></TR><TR><TD colspan="2">| BEGIN DO
A little bit of explanation is necessary in the above listing. Why do the $1 and $2 lines not have field names? Well, if you specify a variable without a field name, Mine The Web will not store it in the database. This is useful when there is a piece of information in a pattern that isn't always the same but you're not interested in keeping. For example, the title of the movie isn't the same each time the pattern repeats, but you want to store that information in the database. Therefore, you give the $3 variable a field name (TITLE). If however you decided that you did not want the movie names to be stored in the database, then you would not give the $3 variable any name.BEGIN HEADER source:http://shuetech.com/minetheweb/demo/docs/mocksites/cinema/index.htm BEGIN INFORMATION BEGIN ACTION startafter: <TABLE class=normal cellSpacing=0 width="100%" align=center border=0> <TBODY> | endat: </TR></TBODY></TABLE><BR></FONT></TR></TBODY></TABLE></TD></TR><TR><TD colspan="2">| pattern: $1 <TR bgColor=\#$2> <TD></TD> <TD><B><FONT color=\#befefe>$3</FONT></B> $4<BR> $5</TD> | definition: $1: $2: $3:TITLE:TEXT $4:MOVIELENGTH:TEXT $5:SHOWTIMES:TEXT:StripHTMLTags():StripTrailingWhitespace() BEGIN DO
This tells Mine The Web to create 2 additional fields for every record stored, called CINEMA and LOCATION, which will both be stored as text. For each occurence of the pattern defined in the BEGIN ACTION section, Mine The Web also stores the values 'MTW Cinema and Cafe' and 'Boston' in the fields CINEMA and LOCATION.BEGIN HEADER source:http://shuetech.com/minetheweb/demo/docs/mocksites/cinema/index.htm BEGIN INFORMATION CINEMA:TEXT:MTW Cinema and Cafe LOCATION:TEXT:Boston BEGIN ACTION startafter: <TABLE class=normal cellSpacing=0 width="100%" align=center border=0> <TBODY> | endat: </TR></TBODY></TABLE><BR></FONT></TR></TBODY></TABLE></TD></TR><TR><TD colspan="2">| pattern: $1 <TR bgColor=\#$2> <TD></TD> <TD><B><FONT color=\#befefe>$3</FONT></B> $4<BR> $5</TD> | definition: $1: $2: $3:TITLE:TEXT $4:MOVIELENGTH:TEXT $5:SHOWTIMES:TEXT:StripHTMLTags():StripTrailingWhitespace() BEGIN DO
BEGIN HEADER source:http://shuetech.com/minetheweb/demo/docs/mocksites/cinema/index.htm BEGIN INFORMATION CINEMA:TEXT:MTW Cinema and Cafe LOCATION:TEXT:Boston SHOWINGUNTIL:TEXT:@1 BEGIN ACTION startafter: <TABLE class=normal cellSpacing=0 width="100%" align=center border=0> <TBODY> | endat: </TR></TBODY></TABLE><BR></FONT></TR></TBODY></TABLE></TD></TR><TR><TD colspan="2">| pattern: $1 <TR bgColor=\#$2> <TD></TD> <TD><B><FONT color=\#befefe>$3</FONT></B> $4<BR> $5</TD> | definition: $1: $2: $3:TITLE:TEXT $4:MOVIELENGTH:TEXT $5:SHOWTIMES:TEXT:StripHTMLTags():StripTrailingWhitespace() @1: defstartafter: Valid Until : <B>| defendat: </B><BR>| ^@ BEGIN DO
Can you figure out what's going on there? Very simple. All the above 4 lines say is that the value for the SHOWINGUNTIL (@1) field is between the "Valid Until : <B>" and "</B><BR>" text in the HTML source, which is where you'll find the listing's expiry date.defstartafter: Valid Until : <B>| defendat: </B><BR>|