ICONICO

Discussion Forum

Post Reply in Data Extractor

Post Reply To "Stack Overflow Problem"
Ok, These are the settings on all my tabs:

1. Where to Extract - Extract from Multiple Files and/or Web page URLs
Here I use a cached web page from a 3rd party web crawler.

2. What to Extract - I made a custom rule called "Extract Info", where I used some JavaScript code I found on the internet and wrote my own code too

It is as follows, if u want a look :

var tables = document.all.tags('TABLE');
var rows;
var cells;
var timeExp = /([0-1][0-9]|2[0-3]):([0-5][0-9])/;
var dateExp = /[0-3][0-9]-(Jan|Feb|Mrz|Apr|Mai|Jun|Jul|Aug|Sep|Okt|Nov|Dez)-[0-9][0-9][0-9][0-9]/g;
var counter = 0;
var time, date;
if (tables)
{
for (var t=0; ttables.length; t++)
{
rows = tables[t].all.tags('TR');
if (tables[t].all.tags('TABLE').length == 0)
{
for (var r=0; rrows.length; r++)
{
if (rows[r].innerText != '')
{
cells = rows[r].all.tags('TD');
DataExtractor.StartNewResult();

var text = rows[r].innerText
DataExtractor.SetColumns(3);

if (text.match("Seramis"))
{
DataExtractor.AddResult(1, text);
time = rows[r-1].innerText.match(timeExp);
date = rows[r-1].innerText.match(dateExp);
DataExtractor.AddResult(2,time);
DataExtractor.AddResult(3,date);
}
}
}
}
}
}

Then when I click start extraction I get the error "Stack Overflow at line: 0". I also noticed in the results that when I extract data between a large div tag which contains in itself more div tags, then along with the text these div tags are also extracted and when I export the results in an excel file, I see little square boxes in the places where the div tags would have been. Any thoughts on this as well?

Subject

First Name

Last Name

Email Address for reply notifications (optional) - your email will not be visible

Re-enter the text shown in the image
Enter the text shown here below  

Your Message

  Cancel

Our Software Stores

IconicoAccurate Design and Development Software

BitsDuJourDiscount Deal Coupons for Windows and Mac Software Apps

Our Software Services

SoftwareMarketingResourceYou Wrote the Code, Now How do you Sell it?

IcoBlogOur Official Blog

© copyright 2004-2020 Iconico, Inc. Code & Design. All Rights Reserved. Terms & Conditions Privacy Policy Terms of Use