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";"/url?q=https://www.bitcoinmining.com/bitcoin-mining-hardware/&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFggGMAA&usg=AOvVaw0knUuW8jnm6UO5sba25dnb";"6 Best Bitcoin Mining Hardware ASICs Comparison In 2017";"At first, miners used their central processing unit (CPU) to mine, but soon this wasn't fast enough and it bogged down the system resources of the host computer."
"http://www.google.com/search?hl=en&q=unit+miner";"/url?q=http://clashofclans.wikia.com/wiki/Miner&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFggJMAE&usg=AOvVaw2eu6Qk96BAAJmMSe9cbJDe";"Miner | Clash of Clans Wiki | FANDOM powered by Wikia";"The Miner cannot be placed anywhere on the map like the Clash Royale counterpart. It must be placed outside the red area like any other unit. Miners in large ..."
"http://www.google.com/search?hl=en&q=unit+miner";"/url?q=https://en.wikipedia.org/wiki/Miner%2527s_inch&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFggLMAI&usg=AOvVaw167zEBMFN0dRpTNNbiLYtP";"Miner's inch - Wikipedia";"The miner's inch is a unit of flow in terms of volume per unit time, usually in relation to the flow of water. The definition of a miner's inch varies by location."
"http://www.google.com/search?hl=en&q=unit+miner";"/url?q=https://terraria.gamepedia.com/Drill_Containment_Unit&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFggTMAM&usg=AOvVaw0qQRHPZxv0Sfj6HVTDpu0a";"Drill Containment Unit - Official Terraria Wiki";"10 Nov 2017 ... The Drill Containment Unit (often called DCU) is a late-game ... Unlike other mining tools, the Drill Mount does not inflict damage on enemies."
"http://www.google.com/search?hl=en&q=unit+miner";"/url?q=http://www.unitminer.com/&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFggWMAQ&usg=AOvVaw2oh5bX-q72YFvwjrCnhkgt";"UnitMiner";"UnitMiner - quality software and service for web data extraction."
"http://www.google.com/search?hl=en&q=unit+miner";"/url?q=https://www.buybitcoinworldwide.com/mining/hardware/&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFggZMAU&usg=AOvVaw3ey-GWcobRCuk6qAM5akDP";"5 Best Bitcoin Mining Hardware ASICs 2017 / 2018 (Comparison)";"27 Jun 2017 ... Hobby Bitcoin mining can still be fun and even profitable if you have cheap electricity, an efficient bitcoin mining machine and get the best ..."
"http://www.google.com/search?hl=en&q=unit+miner";"/url?q=http://www.coaleducation.org/glossary.htm&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFggcMAY&usg=AOvVaw3qNL47vPqyvYgToMqlpXrp";"Glossary of Mining Terms - Kentucky Coal Education";"Continuous miner - A machine that constantly extracts coal while it loads it. This is to be distinguished from a conventional, or cyclic, unit which must stop the ..."
"http://www.google.com/search?hl=en&q=unit+miner";"/url?q=https://miningpoolhub.com/&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFggfMAc&usg=AOvVaw2PJwDPznYfLfD08KrgEZ74";"Mining Pool Hub I Home";"Just start mining with appropriate miner and algo right away. ... You can mine different algo coins by using Hub feature, or third party mining helper programs."
"http://www.google.com/search?hl=en&q=unit+miner";"/url?q=https://github.com/zcash/zcash/wiki/Mining-Guide&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFggiMAg&usg=AOvVaw1OvbKn5bbfEgcexwFPF3kf";"Mining Guide · zcash/zcash Wiki · GitHub";"Zcash Mining Guide. Translations available here. Welcome! This guide is intended to get you mining Zcash, a.k.a. ""ZEC"", on the Zcash mainnet. The unit for ..."
"http://www.google.com/search?hl=en&q=unit+miner";"/url?q=https://www.weusecoins.com/en/mining-guide/&sa=U&ved=0ahUKEwjw85XH5NjXAhXlLMAKHWqsDEcQFgglMAk&usg=AOvVaw08oox2UJvfKghdmkz_mQ7J";"How to get started with Bitcoin mining. - WeUseCoins";"But if you do then this Bitcoin miner is probably the best deal. Bitcoin mining for profit is ... CPU bitcoin mining gave way to the GPU (Graphical Processing Unit)."

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