Update README.md
Browse files
README.md
CHANGED
@@ -6,6 +6,17 @@ Datasets of articles extracted from https://pzwiki.net/wiki/Project_Zomboid_Wiki
|
|
6 |
|
7 |
JSONL
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
## Fields
|
10 |
|
11 |
- url (e.g., `https://pzwiki.net/wiki/Mechanics`)
|
|
|
6 |
|
7 |
JSONL
|
8 |
|
9 |
+
```python
|
10 |
+
import json
|
11 |
+
|
12 |
+
data = []
|
13 |
+
with open('zomboid_articles.jsonl') as f:
|
14 |
+
for line in f:
|
15 |
+
data.append(json.loads(line))
|
16 |
+
|
17 |
+
print(data[0].keys())
|
18 |
+
```
|
19 |
+
|
20 |
## Fields
|
21 |
|
22 |
- url (e.g., `https://pzwiki.net/wiki/Mechanics`)
|