|
|
Sample Resources For Data Record Extractor
To help you understand how Data Record Extractor working, here provide you some resources for your exercise. If your installation doesn't include these the following two extraction templet, please download the templet file and import them into your system(using menu: Templet -> Import). By studying the samples to learn how to extract record data from web and local file.
Sample 1: Source text from URL and extracted by Text Tag
Learning Targets:
- Understand and learn how to use auto increment field and DB field in the URL.
- Understand and learn how to set text tag, open tag, close tag, record tag, start tag.
Download Resource:
Install Sample:
- Download two templets above.
- Run Data Record Extractor, click menu Templet -> Import, select the templet file downloaded before, click Open to complete import, then the other. This will create two tables and two templets, you can see them in main interface and Database Management(Menu: Templet -> Database Management to show).
- For the field category code in table category used in templet product, so you must extract category templet first, after extracting completed, then extracts templet product.
Sample 2: Local text file and extracted by Regular Expression
Learning Targets:
- Learn how to extract record data from text file.
- Understand and learn knowledge about regular expression.
Download Resource:
- Right click and select Save target as... to download: sample_resume.txt
- Corresponding extraction templet, right click and select Save target as... to download: sample_resume.tpl
Install Sample:
- Download the source file and templet file.
- Run Data Record Extractor, click menu Templet -> Import, select the templet file downloaded before, click Open to complete import. This will create a table and a temple, you can see them in main interface and Database Management(Menu: Templet -> Database Management to show).
- Double click on the templet to start extraction, then you can see the extraction result listed in right grid.
Note:
The above sample is web page extracted by text tag and local file extracted by regular expression, they have not fixed combination, you can also use regular expression to extract web page or use text tag to extract local file.
|