Example - google results

HTML output retrieves results from www.google.com. Output is refreshing each 15 minutes from cron.

Output:

Source URL;Link;Title;Description
"http://www.google.com/search?hl=en&q=unit+miner";"";"";""
"http://www.google.com/search?hl=en&q=unit+miner";"";"";""
"http://www.google.com/search?hl=en&q=unit+miner";"";"";""
"http://www.google.com/search?hl=en&q=unit+miner";"";"";""
"http://www.google.com/search?hl=en&q=unit+miner";"";"";""
"http://www.google.com/search?hl=en&q=unit+miner";"";"";""
"http://www.google.com/search?hl=en&q=unit+miner";"";"";""
"http://www.google.com/search?hl=en&q=unit+miner";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW-vIFZOS0PEPmIOlkAY&start=10&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=dkpTW5HDMoTt9AO6gK24BA&start=20&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""
"http://www.google.com/search?q=unit+miner&hl=en&prmd=ivns&ei=d0pTW9SaEcq20PEPpfifqA0&start=30&sa=N";"";"";""

Source code of script:

# File: google_main.w
# Name: Google search engine
# Description: Script opens Google URL with searching term "unit miner", extract first 4 pages of results.
# Input: URL [http://www.google.com/search?hl=en&q=unit+miner]
# Output format: CSV file, XLS file
# Output fields: Source URL, Link, Title, Description

#<Logger File>
#	Global
#	FileName google_log.log
#	Level debug
#</Logger>

<Section>
	Name google_main
	
	Define $output_file_csv google_output.csv
	Define $output_file_xls google_output.xls
	
	Define $url /search?hl=en&q=unit+miner
	
	
	
	#delete old output CSV file
	<Action Exec>
		cmd rm -f *.csv
	</Action>
	
	
	
	<Section While>
		MaxIterations 4
		
		# downloading the content of URL
		<Action ContentURL>
			URL http://www.google.com{$url}
			RemoveNewLine
			TagsToStrip em, br, b, span, img
			StripTagsWhereClass f
		</Action>
		
		# extracting data from all records on page
		<Section While>
			EndAt Searches related to

			<Pattern>
				RegExp <a href="{$link:re([^"]*)}">{$title:re([^<]*)}</a><table cellpadding="0" cellspacing="0" border="0"><tr><td class="j"><font size="-1">{$description:re([^<]*)}
				Trim
				Compact
				HtmlSpecialChars
			</Pattern>		
			
			# relative address -> absolute address
			Define $source_url http://www.google.com{$url}
		
			# saving data into CSV file
			<Action SaveCSV>
				FileName {$output_file_csv}
				Separator ;
				Column $source_url, Source URL
				Column $link, Link
				Column $title, Title
				Column $description, Description
			</Action> 				
		</Section>
		
		# finding URL to next page
		<Pattern>
			RegExp <a href="{$url:re([^"]*)}"><strong>Next</strong></a>
			Trim
			Compact 
		</Pattern>		
	</Section>
	
	
	
	#delete old output XLS file
	<Action Exec>
		cmd rm -f *.xls
	</Action>
	
	#convert data from csv file into xls file
	<Action ConvertToXLS>
		InputFile {$output_file_csv}
		OutputFile {$output_file_xls}
		Separator ;
	</Action>
</Section>

Main google_main