473,796 Members | 2,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Extracting semantic structure of HTML page

Hi,

I'm in need of a program that extracts the semantic structure of HTML
pages -- a program that groups paragraphs with the corresponding
headings etc. I know it's not too difficult to extract well structured
documents, e.g. formal essays. However, with complicated sites like CNN
and CNet, where many tables are used to align text, to me it'd become
extremely difficult. Does anyone know of any existing applications? If
not, should it be possible to write a program that is rule-based? Is it
likely for the rules to clash?

Please help.

Cheers,
Michael

Jul 23 '05 #1
2 1640
da*****@hotmail .com wrote:

I'm in need of a program that extracts the semantic structure of HTML
pages -- a program that groups paragraphs with the corresponding
headings etc. I know it's not too difficult to extract well structured
documents, e.g. formal essays. However, with complicated sites like CNN
and CNet, where many tables are used to align text, to me it'd become
extremely difficult. Does anyone know of any existing applications? If
not, should it be possible to write a program that is rule-based? Is it
likely for the rules to clash?


<http://www.hotscripts. com/PHP/Scripts_and_Pro grams/Web_Fetching/index.html>

But if you want to grab their content, it's far easier to use one of the
many, many CNET RSS feeds: <http://www.cnet.com/4520-6022-5115113.html>.
Their usage guidelines are very sensible, IMHO.
Matthias

Jul 23 '05 #2
Matthias Gutfeldt wrote:
da*****@hotmail .com wrote:
I'm in need of a program that extracts the semantic structure of
HTML pages --
[snip]
If not, should it be possible to write a program that is
rule-based? Is it likely for the rules to clash?


But if you want to grab their content, it's far easier to use one of
the many, many CNET RSS feeds:
<http://www.cnet.com/4520-6022-5115113.html>. Their usage guidelines
are very sensible, IMHO.


The question was phrased in a way which made me think of a course
assignment, so perhaps a practical solution won't help, bicbw ;)

As is clear, markup in use in the real world has no implicit semantic
structure, therefore any attempt to extract such information which might
be present can at best be heuristic, hence obviously yes, there is no
logical reason why you won't discover useful rules which in some
circumstances clash.

As to how likely, you'd probably need to investigate possible rulesets
and analyse exisiting markup before you could answer that properly.

At a guess, given the mess that seems typical at present, I'd say it's
very likely.

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 23 '05 #3

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

Similar topics

5
6090
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the Internet. Specifically, marking up a document that will contain multiple related form controls (intended exclusively for client-side scripting) that would never be intended to be submitted. I realise that that concept is a non-starter in an Internet...
1
2807
by: Cognizance | last post by:
Hi gang, I'm an ASP developer by trade, but I've had to create client side scripts with JavaScript many times in the past. Simple things, like validating form elements and such. Now I've been assigned the task of extracting content from a given HTML page. If anyone's familiar with the Yahoo! Store order confirmation screen, I need to be able to grab the total amount from the table to the right-hand side. (Sample File:
7
1682
by: dayzman | last post by:
Hi, Does anyone know of any application, or simply any development, on extracting semantic structure of HTML pages? Cheers, Michael
3
1668
by: dayzman | last post by:
Hi, I'm interested in projects evolve about extracing semantic structure of HTML documents. What I mean by extracting semantic structure is to analyse HTML doc and outputs a model (perhaps a tree structure) that relates paragraphs to headings/sub headings. It should be a difficult problem, since HTML is a structure language. Does anyone know of any existing research? Cheers,
3
1756
by: dayzman | last post by:
Hi, I've read somewhere that feature-based analysis can be used to extract the semantic structure of HTML documents. By semantic structure, they mean the model of the rendered view a reader sees. Now, my question is, what should such feature-based analysis involve? What exactly is a feature-based analysis? Please help.
4
7920
by: crafuse | last post by:
Hello, I've overridden the WndProc function in my form to hand some special behavior. Specifically, I look for the WM_NCMOUSEMOVE event to tell me when the user is trying to move the window by draggin the title bar. However, I am having trouble extracting the POINT structure that is supposed to come with the message. For example: Structure POINTS Public x As Short
7
1532
by: Une Bévue | last post by:
the purpose : avoid all banners and unusefull contents of an html document the leaves intact the part from start to body and inside the body leave only the part where user has clicked (by mousedown -- mousemove --mouseup)). for example a schematic document as input : <html><title>...<meta<<link to csss, javascript ect> <body...>
4
1694
by: Damo | last post by:
I have a program, That retrieves a webpage , such as a search engine results page from the web, Then I need to go through the document and retrieve just the search results. The problem is I want to omit the sponsored results. So is there a way I can start analysing the document at a specific point (ie after the sponsored results) Thanks
12
4169
by: rshepard | last post by:
I'm a bit embarrassed to have to ask for help on this, but I'm not finding the solution in the docs I have here. Data are assembled for writing to a database table. A representative tuple looks like this: ('eco', "(u'Roads',)", 0.073969887301348305) Pysqlite doesn't like the format of the middle term: pysqlite2.dbapi2.InterfaceError: Error binding parameter 1 - probably
0
10237
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10187
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10018
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7553
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.