File size: 8,794 Bytes
8477df5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
# Comprehensive SERP Data

This dataset contains comprehensive search engine ranking data collected from Google and Bing, along with extracted technical and content features for analyzing search engine ranking algorithms.

## πŸ“Š Dataset Overview

- **Total Records**: 14,465 search results
- **Search Engines**: Google (5,895 results) and Bing (8,570 results)
- **Keywords**: 500 diverse search queries
- **Features**: 20 features including technical scores, content analysis, and ranking metadata

## 🎯 Research Purpose

This dataset was created to empirically characterize and compare the ranking environments of large-scale search engines (Google and Bing) through systematic data collection and feature extraction. It enables research on:

- Search engine ranking algorithm analysis
- Cross-engine comparison studies
- Technical SEO feature importance
- Content relevance analysis
- Ranking prediction modeling

## πŸ“ Dataset Structure

### Main Dataset File
- **File**: `datasets/dataset.csv`
- **Format**: CSV (Comma-separated values)
- **Encoding**: UTF-8
- **Size**: ~2MB

### Column Descriptions

#### Search Metadata
| Column | Type | Description |
|--------|------|-------------|
| `query` | string | The search query used |
| `engine` | string | Search engine (google/bing) |
| `position` | integer | Ranking position (1-20) |
| `url` | string | Full URL of the result |
| `hostname` | string | Domain name of the result |
| `file_name` | string | Unique identifier for the page |

#### Content Features
| Column | Type | Description | Range |
|--------|------|-------------|-------|
| `query_in_title` | integer | Query presence in page title (0/1) | 0-1 |
| `exact_query_in_title` | integer | Exact query match in title (0/1) | 0-1 |
| `query_in_h1` | integer | Query presence in H1 tag (0/1) | 0-1 |
| `exact_query_in_h1` | integer | Exact query match in H1 (0/1) | 0-1 |
| `query_density_body` | float | Query frequency in body content | 0.0-1.0 |
| `semantic_similarity_title_query` | float | Semantic similarity between title and query | 0.0-1.0 |
| `semantic_similarity_content_query` | float | Semantic similarity between content and query | 0.0-1.0 |
| `word_count` | integer | Number of words in page content | 0-∞ |

#### Technical Features (Lighthouse Scores)
| Column | Type | Description | Range |
|--------|------|-------------|-------|
| `performance_score` | float | Page load performance score | 0-100 |
| `accessibility_score` | float | Web accessibility compliance score | 0-100 |
| `best-practices_score` | float | Security and best practices score | 0-100 |
| `seo_score` | float | Search engine optimization score | 0-100 |

#### Analysis Features
| Column | Type | Description |
|--------|------|-------------|
| `rank_tier` | string | Ranking tier (High: 1-5, Medium: 6-10, Low: 11-20) |
| `cluster` | integer | K-means cluster assignment (0-5) |

## πŸ”¬ Data Collection Methodology

### 1. Keyword Selection
- **Source**: `raw/keywords/keywords.csv`
- **Count**: 500 diverse search queries
- **Categories**: E-commerce, services, information, local search
- **Selection Criteria**: High search volume, diverse intent types

### 2. Search Engine Data Collection
- **Google**: Custom Search API (top 20 results per query)
- **Bing**: Bing Search API (top 20 results per query)
- **Collection Period**: Systematic collection with rate limiting
- **Error Handling**: Retry mechanisms and exception tracking

### 3. Web Page Processing
- **HTML Extraction**: Full page content capture using headless browsers
- **Screenshot Capture**: Visual page representation
- **Performance Measurement**: Lighthouse scores via PageSpeed Insights API
- **Content Analysis**: NLP-based feature extraction

### 4. Feature Extraction
- **Technical Features**: Automated Lighthouse scoring
- **Content Features**: Natural language processing and semantic analysis
- **Query Matching**: Exact and fuzzy matching algorithms
- **Semantic Similarity**: Sentence transformer-based relevance scoring

## πŸ“ˆ Dataset Statistics

### Distribution by Search Engine
- **Google**: 5,895 results (40.7%)
- **Bing**: 8,570 results (59.3%)

### Distribution by Ranking Tier
- **High Tier** (positions 1-5): 3,784 results (26.2%)
- **Medium Tier** (positions 6-10): 3,837 results (26.5%)
- **Low Tier** (positions 11-20): 6,844 results (47.3%)

### Cluster Distribution
- **Cluster 0**: 2,314 results (16.0%)
- **Cluster 1**: 2,122 results (14.7%)
- **Cluster 2**: 1,522 results (10.5%)
- **Cluster 3**: 5,142 results (35.6%)
- **Cluster 4**: 2,311 results (16.0%)
- **Cluster 5**: 1,054 results (7.3%)

## πŸ› οΈ Technical Implementation

### Data Collection Pipeline
The dataset was created using the SERP Profiler Kit, a comprehensive research framework with the following components:

1. **Data Collection Modules**
   - Google Custom Search API integration
   - Bing Search API integration
   - Web scraping with headless browsers
   - PageSpeed Insights API integration

2. **Feature Extraction**
   - Natural language processing with sentence transformers
   - Technical SEO analysis using Lighthouse
   - Content relevance scoring
   - Query matching algorithms

3. **Data Processing**
   - Quality validation and outlier detection
   - Feature normalization and standardization
   - Cluster analysis using K-means
   - Statistical analysis and validation

### Quality Assurance
- **Exception Tracking**: Comprehensive error logging
- **Data Validation**: Multi-stage quality checks
- **Outlier Detection**: Statistical anomaly identification
- **Reproducibility**: Deterministic processing with fixed random seeds

## πŸ“Š Research Applications

### 1. Clustering Analysis (RQ1)
- Identify distinct ranking profiles using K-means clustering
- Analyze feature patterns across different ranking strategies
- Validate cluster quality using multiple metrics

### 2. Feature Importance Analysis (RQ2)
- Determine which features most strongly predict ranking positions
- Compare feature importance across ranking tiers
- Identify engine-specific ranking factors

### 3. Cross-Engine Comparison (RQ3)
- Compare ranking characteristics between Google and Bing
- Analyze feature distribution differences
- Identify engine-specific ranking patterns

### 4. Ranking Prediction (RQ4)
- Build ordinal logistic regression models for ranking prediction
- Analyze feature coefficients and significance
- Validate model assumptions and performance

## πŸ”§ Usage Examples

### Python Usage
```python
import pandas as pd

# Load the dataset
df = pd.read_csv('datasets/dataset.csv')

# Basic statistics
print(f"Dataset shape: {df.shape}")
print(f"Engines: {df['engine'].value_counts()}")
print(f"Rank tiers: {df['rank_tier'].value_counts()}")

# Filter by search engine
google_results = df[df['engine'] == 'google']
bing_results = df[df['engine'] == 'bing']

# Analyze technical features
tech_features = ['performance_score', 'accessibility_score', 
                'best-practices_score', 'seo_score']
print(df[tech_features].describe())

# Analyze content features
content_features = ['query_in_title', 'query_in_h1', 
                   'semantic_similarity_title_query', 'word_count']
print(df[content_features].describe())
```

### R Usage
```r
# Load the dataset
df <- read.csv('datasets/dataset.csv')

# Basic analysis
summary(df)
table(df$engine)
table(df$rank_tier)

# Technical features analysis
tech_cols <- c('performance_score', 'accessibility_score', 
               'best.practices_score', 'seo_score')
summary(df[tech_cols])
```

## πŸ”— Related Resources

- **Source Code**: [SERP Profiler Kit Repository](https://github.com/gokerDEV/serp-profiler-kit)
- **Documentation**: Complete methodology and implementation details
- **Analysis Results**: Statistical analysis and visualization outputs

## πŸ“„ License

This dataset is released under the MIT License. Please ensure compliance with search engine terms of service and website robots.txt files when using this data.

## 🀝 Contributing

For questions, issues, or contributions:
- Open an issue on the repository
- Review the documentation for methodology details
- Check the analysis results for statistical insights

## ⚠️ Important Notes

1. **API Compliance**: This dataset was collected following search engine API terms of service
2. **Ethical Scraping**: All web scraping was performed with respect to robots.txt files
3. **Data Freshness**: Search results may change over time; this dataset represents a snapshot
4. **Usage Limitations**: This dataset is for research purposes only

---

**Note**: This dataset enables systematic analysis of search engine ranking algorithms and provides a foundation for understanding how different factors influence search result positioning across major search engines.