|
Decoding Keys
Content grabber
is designed to be so flexible that it can grab information out of any website, however
in order to work with a particular website a custom key for such a site should be
developed.
This key
gives instructions on how to handle website content to the application.
Custom key
can be developed by any IT professional. We can provide the documentation on how
to do that upon your request.
HiTechMaster
can also develop a custom key for you. Additional charge of $150 per key will be
applied.
Developing custom-made keys for WEB Content Grabber
You can make a decoding key to work with Content Grabber using Visual Basic.NET
script.
What is decoding key
Decoding key is
a class that implements the following interface*:
iDecodingKey.cs
* - please contact
us for updates on the latest interface version
Properties
“siteName”, “siteUrl”, “Country”, “Province” and “Culture” provide initial information about
the current plug-in for Content Grabber.
Methods
“FinetuneUrl”, “ResultUrl” and “BatchUrl” are controlling enabling/disabling of the grab buttons.
Content Grabber automatically calls subroutines in the following order:
1.
void StartGrabbing(HTMPageSequence.PageSequenceItem sequenceItem,
ref object
parent)
Where
sequenceItem contains information of a currently loaded
page and parent is the reference to Content Grabber itself.
2.
void AnaliseARecord(GrabberInterfaces.SnapshotImage data)
Processing of one row of content should
be implemented here
Referenced
assemblies
Assemblies “System.dll”, “System.Web.dll” are added automatically.
You can reference more .NET assemblies (even self-made ) in “Application.config”
file located in Content Grabber’s installation folder.
Adding new plug-in into Web Content Grabber
Decoding key’s script file has to be added in the same
folder were supported decoding keys are. Class name of the custom decoding key mast
be listed in plugins1.vbs file. Example:
Imports
Microsoft.VisualBasic
Public
Class PluginDescriptor
ReadOnly
Property fileNames() As
String()
Get
Dim fileNms As New System.Collections.ArrayList
fileNms.Add("Common_US_yoursite_com.vbs")
Return fileNms.ToArray(GetType(String))
End Get
End
Property
ReadOnly
Property SectionName() As
String
Get
Return "Custom Decoding Keys"
End Get
End
Property
Public
Sub New(ByVal
param As Object)
End
Sub
End
Class
Example
Example of decoding key script is posted on our
support forum
http://hitechmaster.net/SupportForum
|