goker commited on
Commit
c8c836a
Β·
verified Β·
1 Parent(s): 2392f0a

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +119 -3
README.md CHANGED
@@ -1,3 +1,119 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Hyperlinks Dataset
2
+
3
+ This dataset contains subpage links, their features, and corresponding search engine rankings from Google and Bing. The data was collected as part of the research project: "Accessible Hyperlinks and Search Engine Rankings: An Empirical Investigation".
4
+
5
+ ## Dataset Description
6
+
7
+ This dataset is designed to facilitate research on the relationship between website accessibility, specifically hyperlink accessibility, and search engine rankings. It consists of subpage links extracted from various websites, along with their associated features and ranking positions on Google and Bing SERPs.
8
+
9
+ ### Data Sources
10
+
11
+ The dataset was constructed using the following sources and processes:
12
+
13
+ 1. **Trending Keywords:** Initial keywords were obtained from Google Trends ("Shopping" category) over a 7-day period. These keywords are provided in `raw/keywords/trending_US_7d_20141203-1845.csv`.
14
+ 2. **Google SERPs:** The top 5 Search Engine Results Pages (SERPs) for each trending keyword were collected from Google.
15
+ 3. **Website Extraction:** Unique websites were extracted from the collected Google SERPs, forming the basis for further data collection.
16
+ 4. **Website Scraping:** Each website from `processed/websites.csv` was scraped to collect all of its subpage links and their features. These are stored in `processed/links.csv`.
17
+ 5. **Subpage Link Collection from Search Engines:** The `site:` operator was used on both Google and Bing to collect subpages associated with each website. Results are in `processed/google.csv` and `processed/bing.csv`.
18
+ 6. **Matching and Labeling:** Subpage links from the website scraping step were matched with the search engine results and labeled with their corresponding ranking positions (Google and Bing). This labeled data is stored in `processed/labeled_links.csv`.
19
+ 7. **Dataset Balancing:** Balanced datasets were created based on position numbers (grouped into pages) and the presence or absence of position numbers. These are in the `datasets/` directory.
20
+ 8. **Feature Extraction:** Accessibility and other relevant features were extracted from the labeled datasets. The extracted features are stored in the `extracted/` directory.
21
+
22
+ ### Data Fields
23
+
24
+ **`processed/links.csv` (Raw Link Features - scraped from websites):**
25
+
26
+ * `order`: The order of the link in the HTML document.
27
+ * `href`: The URL the link points to.
28
+ * `innerText`: The visible text of the link.
29
+ * `innerHTML`: The HTML content within the link tag.
30
+ * `title`: The title attribute of the link.
31
+ * `ariaLabel`: The `aria-label` attribute of the link.
32
+ * `ariaLabeledText`: Text of the element referenced by `aria-labelledby`.
33
+ * `isVisual`: Whether the link is visually rendered.
34
+ * `ariaHidden`: The `aria-hidden` attribute of the link.
35
+ * `isVisible`: Whether the link is visible on the page.
36
+ * `target`: The target attribute of the link (e.g., "\_blank").
37
+ * `role`: The ARIA role of the link.
38
+ * `tabIndex`: The `tabindex` attribute of the link.
39
+ * `isKeyboardAccessible`: Whether the link is accessible via keyboard.
40
+ * `fontSize`: The font size of the link text.
41
+ * `fontWeight`: The font weight of the link text.
42
+ * `underlined`: Whether the link text is underlined.
43
+ * `color`: The text color of the link.
44
+ * `backgroundColor`: The background color behind the link element.
45
+ * `actualBackgroundColor`: The actual rendered background color.
46
+ * `x`: The x-coordinate of the link on the page.
47
+ * `y`: The y-coordinate of the link on the page.
48
+ * `width`: The width of the link element.
49
+ * `height`: The height of the link element.
50
+ * `documentWidth`: The width of the document.
51
+ * `documentHeight`: The height of the document.
52
+ * `deviceScaleFactor`: The device scale factor.
53
+ * `viewportWidth`: The width of the viewport.
54
+ * `viewportHeight`: The height of the viewport.
55
+ * `hasAltText`: Whether the link has alternative text (relevant for image links).
56
+
57
+ **`processed/labeled_links.csv`:**
58
+
59
+ * This file contains the same features as `links.csv` plus:
60
+ * `google_position`: The ranking position of the link on Google SERPs.
61
+ * `bing_position`: The ranking position of the link on Bing SERPs.
62
+
63
+ **`datasets/` (Balanced datasets with raw features):**
64
+ * The balanced datasets in this folder contain a subset of the raw features from `labeled_links.csv`. The exact features included may vary depending on the specific balancing criteria used. Refer to the Data Collection and Processing repository for details.
65
+
66
+ **`extracted/` (Extracted Accessibility Features):**
67
+
68
+ * `label`: The class label derived from the search engine ranking position. (e.g., page number of the link on SERPs).
69
+ * `has_text`: Whether the link has innerText, title, ariaLabeledText.
70
+ * `has_html`: Whether the link has innerHTML.
71
+ * `is_visual`: Whether the link is visually rendered (same as in `links.csv`).
72
+ * `is_bold`: Whether the link text is bold.
73
+ * `is_underlined`: Whether the link text is underlined (same as in `links.csv`).
74
+ * `is_visible`: Whether the link is visible on the page (same as in `links.csv`).
75
+ * `is_keyboard_accessible`: Whether the link is accessible via keyboard (same as in `links.csv`).
76
+ * `is_unique`: Whether the link is unique on the page based on its `href` attribute.
77
+ * `contrast_ratio`: The contrast ratio of the link text against its background.
78
+ * `text_clarity`: a custom metric based on text length, font-size and color.
79
+ * `in_viewport`: Whether the link is within the viewport.
80
+
81
+ ### Dataset Structure
82
+
83
+
84
+ ```
85
+ β”œβ”€β”€ raw/
86
+ β”‚ β”œβ”€β”€ keywords/
87
+ β”‚ β”‚ └── trending_US_7d_20141203-1845.csv
88
+ β”‚ β”œβ”€β”€ screenshots/ [NOT INCLUDED]
89
+ β”‚ └── search_results/ [NOT INCLUDED]
90
+ β”‚ β”œβ”€β”€ google/
91
+ β”‚ └── bing/
92
+ β”‚ └── trends/
93
+ β”‚ └── site_links/
94
+ β”œβ”€β”€ processed/
95
+ β”‚ β”œβ”€β”€ trends.csv
96
+ β”‚ β”œβ”€β”€ websites.csv
97
+ β”‚ β”œβ”€β”€ bing.csv
98
+ β”‚ β”œβ”€β”€ google.csv
99
+ β”‚ β”œβ”€β”€ labeled_links.csv
100
+ β”‚ β”œβ”€β”€ links.csv
101
+ β”‚ └── images/ [NOT INCLUDED]
102
+ β”œβ”€β”€ datasets/
103
+ └── extracted/
104
+ ```
105
+
106
+ * **`raw/`:** Contains the initial keyword data.
107
+ * **`processed/`:** Contains intermediate data files generated during the data collection and processing pipeline.
108
+ * **`datasets/`:** Contains the final balanced datasets with raw features, split by search engine and ready for machine learning.
109
+ * **`extracted/`:** Contains the extracted features, split by search engine.
110
+
111
+ **Note:** The `raw/screenshots/`, `raw/search_results/`, `raw/site_links/`, and `processed/images/` folders are not included in this dataset.
112
+
113
+ ### Data Collection and Processing
114
+
115
+ Our data collection and processing pipeline is open-source and available in the following repository: [https://github.com/goker-dev/hyperlinks](https://github.com/goker-dev/hyperlinks). This repository provides detailed instructions on how to reproduce the data collection and processing steps.
116
+
117
+ ## Citation
118
+
119
+ If you use this dataset in your research, please cite the following paper: