shaikat005 commited on
Commit
b1f8b18
·
verified ·
1 Parent(s): e00f07f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +181 -27
README.md CHANGED
@@ -1,29 +1,183 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: title
5
- dtype: large_string
6
- - name: author
7
- dtype: large_string
8
- - name: date
9
- dtype: large_string
10
- - name: read_time_minutes
11
- dtype: int64
12
- - name: claps
13
- dtype: int64
14
- - name: responses
15
- dtype: int64
16
- - name: article_snippet
17
- dtype: large_string
18
- splits:
19
- - name: train
20
- num_bytes: 132564
21
- num_examples: 357
22
- download_size: 76049
23
- dataset_size: 132564
24
- configs:
25
- - config_name: default
26
- data_files:
27
- - split: train
28
- path: data/train-*
29
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - text-classification
5
+ - text-generation
6
+ - feature-extraction
7
+ language:
8
+ - en
9
+ tags:
10
+ - medium
11
+ - cybersecurity
12
+ - web-pentesting
13
+ - articles
14
+ - nlp
15
+ - blog
16
+ pretty_name: Medium Web Pentesting Articles
17
+ size_categories:
18
+ - n<1K
 
 
 
 
 
 
 
 
 
 
19
  ---
20
+
21
+ # Medium Web Pentesting Articles
22
+
23
+ ## Dataset Description
24
+
25
+ A curated collection of **357 Medium articles** focused on **web penetration testing**, scraped from Medium's search results for the query `web pentesting`. Each record includes article metadata and the opening snippet of the article body.
26
+
27
+ This dataset is useful for NLP tasks such as topic modeling, text classification, content recommendation, and summarization within the cybersecurity domain.
28
+
29
+ ---
30
+
31
+ ## Dataset Details
32
+
33
+ ### Dataset Summary
34
+
35
+ | Property | Value |
36
+ |---|---|
37
+ | Source | Medium.com (`search?q=web+pentesting`) |
38
+ | Total Records | 357 |
39
+ | Date Range | 2015-09-24 to 2026-04-11 |
40
+ | Language | Multilingual (predominantly English) |
41
+ | License | CC BY 4.0 |
42
+
43
+ ### Supported Tasks
44
+
45
+ - **Text Classification** — classify articles by topic, difficulty, or tool type
46
+ - **Text Generation** — generate article intros in the pentesting domain
47
+ - **Feature Extraction** — extract embeddings for semantic search or clustering
48
+ - **Information Retrieval** — build search indexes over pentesting content
49
+
50
+ ---
51
+
52
+ ## Dataset Structure
53
+
54
+ ### Data Fields
55
+
56
+ | Column | Type | Description |
57
+ |---|---|---|
58
+ | `title` | `string` | Title of the Medium article |
59
+ | `author` | `string` | Username/display name of the article author |
60
+ | `date` | `string` | Publication date in `YYYY-MM-DD` format |
61
+ | `read_time_minutes` | `int` | Estimated reading time in minutes (0 if not available) |
62
+ | `claps` | `int` | Number of claps (Medium's engagement metric); values like `1.4K` have been converted to integers (e.g. `1400`) |
63
+ | `responses` | `int` | Number of reader responses/comments |
64
+ | `article_snippet` | `string` | Opening paragraph or intro snippet scraped from the article body |
65
+
66
+ ### Data Splits
67
+
68
+ This dataset is provided as a single split:
69
+
70
+ | Split | Records |
71
+ |---|---|
72
+ | `train` | 357 |
73
+
74
+ ---
75
+
76
+ ## Data Preprocessing
77
+
78
+ The raw scraped data underwent the following cleaning steps before upload:
79
+
80
+ 1. **Dropped scraper metadata columns** — `web_scraper_order`, `web_scraper_start_url`, and `go to` were removed as they contain no semantic value.
81
+ 2. **Dropped 3 null-blog rows** — Articles with no extractable body text (likely paywalled or member-only) were removed.
82
+ 3. **Filled `claps` and `responses` nulls with `0`** — Missing engagement metrics are treated as zero engagement.
83
+ 4. **Normalized `claps` notation** — Values like `1.4K` were converted to integers (`1400`).
84
+ 5. **Parsed `read_time_minutes`** — Extracted the numeric minute value from strings like `"7 min read"`.
85
+ 6. **Standardized `date`** — Converted from `"Jan 29, 2025"` format to ISO `"2025-01-29"`.
86
+ 7. **Renamed `blog` → `article_snippet`** — To accurately reflect that this is the article's opening snippet, not the full text.
87
+
88
+ > **Note on `article_snippet`:** This field contains only the **opening paragraph** of each article as captured by the scraper. Some entries are very short greetings (e.g., "Hello Everyone!", "Hey guys!") which reflect the actual article openings. The field is kept as-is to preserve fidelity to the source. Some articles are in languages other than English (Turkish, Portuguese, Arabic, etc.).
89
+
90
+ ---
91
+
92
+ ## Dataset Statistics
93
+
94
+ | Metric | Value |
95
+ |---|---|
96
+ | Articles with 0 claps | ~21% |
97
+ | Median claps | 12 |
98
+ | Max claps | 1,400 |
99
+ | Median read time | 4 min |
100
+ | Max read time | 27 min |
101
+ | Articles with responses | ~17% |
102
+
103
+ ---
104
+
105
+ ## Example Records
106
+
107
+ ```json
108
+ {
109
+ "title": "Web Application Pentests & The Basics",
110
+ "author": "Mike Smith",
111
+ "date": "2025-01-22",
112
+ "read_time_minutes": 7,
113
+ "claps": 68,
114
+ "responses": 3,
115
+ "article_snippet": "Hello Everyone!"
116
+ }
117
+ ```
118
+
119
+ ```json
120
+ {
121
+ "title": "Hacking With Cookies",
122
+ "author": "Teri Radichel",
123
+ "date": "2025-03-18",
124
+ "read_time_minutes": 19,
125
+ "claps": 6,
126
+ "responses": 0,
127
+ "article_snippet": "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
128
+ }
129
+ ```
130
+
131
+ ---
132
+
133
+ ## Source Data
134
+
135
+ ### Data Collection
136
+
137
+ Data was collected using a web scraper targeting Medium's public search endpoint:
138
+
139
+ ```
140
+ https://medium.com/search?q=web+pentesting
141
+ ```
142
+
143
+ The scraper captured article cards including title, author, date, read time, engagement counts, and the opening body snippet.
144
+
145
+ ### Who are the source data producers?
146
+
147
+ The articles are authored by individual Medium writers sharing knowledge about web penetration testing, bug bounty hunting, CTF writeups, and cybersecurity tooling.
148
+
149
+ ---
150
+
151
+ ## Considerations for Using the Data
152
+
153
+ ### Social Impact
154
+
155
+ This dataset is intended for **educational and research purposes** in the cybersecurity NLP domain. It may help researchers build tools that assist security professionals in finding relevant literature and knowledge.
156
+
157
+ ### Bias and Limitations
158
+
159
+ - **Snippet-only content**: The `article_snippet` is not the full article; full content is behind Medium's paywall for many posts.
160
+ - **English-dominant but multilingual**: Most articles are in English, but Turkish, Portuguese, and Arabic articles are present without language labels.
161
+ - **Engagement bias**: Articles with more claps may represent more popular or sensationalist content rather than higher quality.
162
+ - **Scraper limitations**: `read_time_minutes = 0` indicates the read time was not available, not that the article has no content.
163
+
164
+ ---
165
+
166
+ ## Citation
167
+
168
+ If you use this dataset in your work, please cite:
169
+
170
+ ```bibtex
171
+ @dataset{medium_web_pentesting_2026,
172
+ title = {Medium Web Pentesting Articles},
173
+ year = {2026},
174
+ note = {Scraped from Medium.com search results for "web pentesting"},
175
+ license = {CC BY 4.0}
176
+ }
177
+ ```
178
+
179
+ ---
180
+
181
+ ## Dataset Card Contact
182
+
183
+ For issues, corrections, or contributions, please open a discussion on the dataset repository.