ICONICO

Discussion Thread

Data Extractor

Message Thread

For WindowsData Extractor

Extract any data, including email addresses and URLs from your files and webpages.

Posted in the Data Extractor Forum.




Extract data between specific div id text

Hi,

I would like to extract a data between a specific text. For example:
###
div id="short"
asdasdasdasdasd
asdasdasdasdasdasdasd
/div
###
I would like to extract the data between ###
###

I know how to put ### in all files but how to extract the text could help a lot.
by Fernando on Dec 5 2008 3:37pm Reply

Extract data between specific div id text

The easiest way would be to write a javascript rule. Does your div have an id or class attribute?
by Nico Westerdale on Dec 8 2008 10:25am Reply

Extract data between specific div id text

Oh wait.. it does.. use this:


DataExtractor.SetColumns(1);
DataExtractor.AddHeader(1, 'Text');

var div = document.getElementById('short');

DataExtractor.StartNewResult();
DataExtractor.AddResult(1, div.innerHTML);
by Nico Westerdale on Dec 8 2008 10:29am Reply

Extract data between specific div id text

How would one do this using a class attribute instead? Thanks.
by Laura Wagner on Apr 12 2010 5:26pm Reply

Extract data between specific div id text

You would have to use getElementByTagName and loop over them with a for loop and check the className property.
by Nico Westerdale on Apr 12 2010 7:22pm Reply

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-2019 Iconico, Inc. Code & Design. All Rights Reserved. Terms & Conditions Privacy Policy Terms of Use