473,387 Members | 3,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Data mining?

Tom
Hi all,

I wonder if anyone can give me some help here.

I have permission from a colleage to use some data from his website,
now I need to take the data and intermingle some of the information
with data from my database. I only have access to the HTML of the
external site, there's no XML feed or anything simple I can get it
from either. So, I was wondering if there was an easyish way of
parsing out the info I need from the HTML and putting it into and
array or something? This is how the HTML is formed:

<div class="primary-clear">
<p style="float:right; font-weight:bold">Tel: .</p>

<h2>xxNeed this Titlexx</h2>
<div class="data-clear">
<div>
<address>Address line 1
address line 2
Postcode
</address>
</div>
</div>
<hr />
<ul>

<li class="first">
<a href="#">more details</a>
</li>
</ul>
</div>

<div class="listing-break"></div>

<div class="primary-clear">
<p style="float:right; font-weight:bold">Tel: .</p>

<h2>xxNeed this Titlexx</h2>
<div class="data-clear">
<div>
<address>Address line 1
address line 2
Postcode
</address>
</div>
</div>
<hr />
<ul>

<li class="first">
<a href="#">more details</a>
</li>
</ul>
</div>
<div class="listing-break"></div>
<div class="primary-clear">
<p style="float:right; font-weight:bold">Tel: .</p>

<h2>xxNeed this Titlexx</h2>
<div class="data-clear">
<div>
<address>Address line 1
address line 2
Postcode
</address>
</div>
</div>
<hr />
<ul>

<li class="first">
<a href="#">more details</a>
</li>
</ul>
</div>

And so on....

Does anyone have any bright ideas? I've got as far as putting the
whole page into a string and ripping out the <head></headand other
stuff. It's looping through those DIVs and turning them into something
I can manipulate where I'm struggling.

Thanks in advance,

Tom

Apr 25 '07 #1
1 1300

"Tom" <go****@tom-jordan.co.ukwrote in message
news:11*********************@r30g2000prh.googlegro ups.com...
Hi all,

I wonder if anyone can give me some help here.

I have permission from a colleage to use some data from his website,
now I need to take the data and intermingle some of the information
with data from my database. I only have access to the HTML of the
external site, there's no XML feed or anything simple I can get it
from either. So, I was wondering if there was an easyish way of
parsing out the info I need from the HTML and putting it into and
array or something? This is how the HTML is formed:

<div class="primary-clear">
<p style="float:right; font-weight:bold">Tel: .</p>

<h2>xxNeed this Titlexx</h2>
<div class="data-clear">
<div>
<address>Address line 1
address line 2
Postcode
</address>
</div>
</div>
<hr />
<ul>

<li class="first">
<a href="#">more details</a>
</li>
</ul>
</div>

<div class="listing-break"></div>

<div class="primary-clear">
<p style="float:right; font-weight:bold">Tel: .</p>

<h2>xxNeed this Titlexx</h2>
<div class="data-clear">
<div>
<address>Address line 1
address line 2
Postcode
</address>
</div>
</div>
<hr />
<ul>

<li class="first">
<a href="#">more details</a>
</li>
</ul>
</div>
<div class="listing-break"></div>
<div class="primary-clear">
<p style="float:right; font-weight:bold">Tel: .</p>

<h2>xxNeed this Titlexx</h2>
<div class="data-clear">
<div>
<address>Address line 1
address line 2
Postcode
</address>
</div>
</div>
<hr />
<ul>

<li class="first">
<a href="#">more details</a>
</li>
</ul>
</div>

And so on....

Does anyone have any bright ideas? I've got as far as putting the
whole page into a string and ripping out the <head></headand other
stuff. It's looping through those DIVs and turning them into something
I can manipulate where I'm struggling.

Thanks in advance,
I looks like the HTML is XML compliant (e.g., it uses <hr /rather than
simply <hr>) you might be able to get away with loading it into an XML DOM.

>
Tom

Apr 26 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Julie | last post by:
I am studying about designing patterns that could help integrating data mining techniques implemented as web services into a data warehouse in the DB layer. Is anyone have idea what visual...
5
by: Framework fan | last post by:
Hello, If I wrote the next ebay (yes I know, yawn-snore) and I had a database with 5 million auction items in it, what would be a really good strategy to get a search done very quickly? Would...
6
by: Michael | last post by:
Hi all, I'm a Bachelor in Computer Engineering, and going to study Masters (major in Knowledge-Based systems). I'm quite fascinated by the concept of data-mining and knowledge-based systems, and...
0
by: visual-basic-data-mining.net | last post by:
Looking for data mining algorithms like Naive Bayes, Neural Networks, Apriori, Genetic Algorithms, Clustering, Decision Trees, etc. implemenattions in C#. Cn you please post a response in our...
0
by: http://www.visual-basic-data-mining.net/forum | last post by:
Looking for data mining algorithms like Naive Bayes, Neural Networks, Apriori, Genetic Algorithms, Clustering, Decision Trees, etc. implementations in VB.NET or C#.NET with Source Code. Can you...
0
by: http://www.visual-basic-data-mining.net/forum | last post by:
Looking for data mining algorithms like Naive Bayes, Neural Networks, Apriori, Genetic Algorithms, Clustering, Decision Trees source code implementations in Visual Basic.NET. Can you please post a...
2
by: Amé | last post by:
Hi! I've been using Intelligent Miner for Data (IMD) since 1 week and I was able to generate some results. However, I would like to know more about the algorithms that are used by IBM (ie in the...
2
by: ist | last post by:
Hi, I am studying data mining features of SSAS and for a workshop I've created 2 views derived from vTargetMail view of AdventureWorksDW. Train data consists every record except those in Pacific,...
18
by: Jens | last post by:
I'm starting a project in data mining, and I'm considering Python and Java as possible platforms. I'm conserned by performance. Most benchmarks report that Java is about 10-15 times faster than...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.