Data Mining: World Wide Web
World Wide Web
The World Wide Web is both a major source of information and a platform for business activity, and it generates an enormous amount of data every day through websites, online services, hyperlinks, and user interactions.
Web mining is the process of applying data mining techniques to that data — web pages, the hyperlinks between them, page content, and web server logs — in order to discover patterns, trends, and useful insights.
What Makes Web Mining Different
Traditional data mining mostly works with structured data sitting in rows and columns. Web data is not like that, and the web presents three distinct kinds of information in one place:
- Web pages contain text and multimedia content
- Pages are connected to each other through hyperlink structure
- User behaviour is recorded in server logs as usage data
Those three kinds of data need three different approaches, which is exactly how web mining is categorized:
- Web Content Mining
- Web Structure Mining
- Web Usage Mining
1. Web Content Mining
Web content mining extracts useful information from the content of web pages, treating each page as a document.
Web pages are usually written in HTML, which carries information about both layout and structure — headings, lists, tables, and semantic tags all indicate what a piece of text means, not just how it looks. A price inside a <span class="price"> tag is identifiable in a way that the same number in plain prose is not.
The central task is data extraction: turning unstructured or semi-structured pages into structured data. This supports:
- Collecting and comparing information across many websites
- Identifying topics and themes on the web
- Improving search engine results
For example, when a user searches for something, the search engine analyzes page content to decide which results are relevant.
Web content mining is largely text mining applied to web pages, with the extra complications that HTML markup must be stripped or exploited, and that a page contains navigation, adverts, and boilerplate alongside its actual content — separating the two is a recognized problem in its own right.
2. Web Structure Mining
Web structure mining analyzes the link structure of the web, treating it as a directed graph:
- Web pages are nodes (vertices)
- Hyperlinks are edges connecting them
The key insight is that a hyperlink carries meaning beyond navigation. When one page links to another, it acts as a form of recommendation or endorsement. If many pages link to a particular page, that suggests the page is important or authoritative — and if the pages doing the linking are themselves important, the endorsement counts for more.
The best-known application is PageRank, developed by Larry Page and Sergey Brin at Stanford and used as the foundation of Google's original ranking system. A page is considered more important when many other important pages link to it — a recursive definition, resolved by computing the ranking iteratively across the whole graph until the numbers stabilize.
A related algorithm, HITS (Hyperlink-Induced Topic Search), splits importance into two scores: authorities are pages with valuable content that many pages link to, and hubs are pages that link out to many good authorities. A well-curated list of resources scores highly as a hub without being an authority itself.
Analyzing link structure lets organizations:
- Identify authoritative and important pages
- Measure the relevance of web content
- Understand relationships and communities between websites
This is the same graph analysis covered in the social media data mining methods lesson — nodes, edges, and centrality — applied to pages instead of people.
3. Web Usage Mining
Web usage mining analyzes user behaviour by studying web server logs, which record details such as:
- Pages visited
- Time and date of each visit
- Number of visits
- Navigation paths through the site
Analyzing this reveals how users actually move through a site, as opposed to how the designers assumed they would. It helps to:
- Identify browsing patterns
- Improve website design and navigation
- Provide personalized recommendations
In modern practice, raw server logs are often supplemented or replaced by dedicated analytics platforms, which capture richer behaviour — scroll depth, clicks, conversions — than a server log can. That shift also brings the data under privacy regulation, since this kind of tracking normally requires user consent under regimes such as the GDPR.
Methods for Analyzing Web Usage Patterns
1. Session and Visitor Analysis
This analyzes user sessions from preprocessed log data, covering visitor details, date and time, session duration, and pages visited. The typical output is a set of reports showing:
- Frequently visited pages
- Common entry pages
- Exit pages — often the most actionable of the three, since a page many users leave from may indicate a problem
2. OLAP (Online Analytical Processing)
OLAP performs multidimensional analysis, letting log data be examined across dimensions such as time, user location, page views, and sessions — and sliced by combinations of them, such as page views by region by month. This is the same OLAP technology used in data warehousing, covered in the data mining vs data warehousing lesson.
Challenges in Web Mining
1. Complexity of web pages. Pages follow no standard structure and mix text, images, video, and scripts, which makes reliable extraction difficult. Content rendered by JavaScript after page load is invisible to a simple crawler entirely.
2. The dynamic nature of the web. Content changes constantly — news, weather, product listings, financial and sports data — so any crawled dataset begins going stale immediately.
3. Diversity of users. Internet users have widely varying interests, backgrounds, and intentions, making behaviour hard to model with one pattern.
4. Data relevance. Any given user is interested in only a tiny fraction of the web. Filtering the relevant portion out of the whole is a substantial problem.
5. The sheer size of the web. The web is enormous and still growing, so storing and analyzing all of it is infeasible — every practical project works from a sample.
Legal and Ethical Constraints
Web mining is constrained by more than technical limits, and the rules are easy to overlook because the data appears freely available.
robots.txt is the convention by which a site declares which parts crawlers may access. Respecting it is the baseline expectation for any crawler.
Terms of service frequently prohibit automated collection regardless of whether content is publicly visible, and a page being readable in a browser is not permission to harvest it at scale.
Data protection law applies whenever web data identifies individuals — usage logs containing IP addresses included. The GDPR and comparable regimes govern collection, retention, and purpose.
Server load is a practical courtesy with real consequences: an aggressive crawler can degrade a site for its actual users, which is why rate limiting is standard practice.
Applications of Web Mining
- Marketing and conversion analysis
- Website and application performance analysis
- User behaviour analysis
- Advertising and campaign performance evaluation
- Website testing and optimization
Related Concepts
Web content mining applies the techniques from this series' text data mining lesson to web pages. Web structure mining uses the graph analysis described in the social media data mining methods lesson. The OLAP tooling behind usage analysis is covered in the data mining vs data warehousing lesson.