VIEWVIEWVIEW commited on
Commit
27d6183
·
verified ·
1 Parent(s): 99395d0

Remove dataset files

Browse files
Files changed (2) hide show
  1. README.md +0 -139
  2. pr0gramm.sqlite3 +0 -3
README.md DELETED
@@ -1,139 +0,0 @@
1
- ---
2
- pretty_name: pr0gramm user comments
3
- license: other
4
- task_categories:
5
- - other
6
- language:
7
- - de
8
- - en
9
- ---
10
-
11
- # pr0gramm-usercomments
12
-
13
- This dataset contains a SQLite database of pr0gramm item metadata and item comments.
14
-
15
- Current file in the repo:
16
-
17
- - `pr0gramm.sqlite3`
18
-
19
- ## Coverage
20
-
21
- From the current database snapshot, comments are present up to item `6986879`.
22
-
23
- The newest item rows currently in `items` are:
24
-
25
- - `6986879` created at `2026-04-17 19:17:36 UTC`
26
- - `6986878` created at `2026-04-17 19:17:30 UTC`
27
- - `6986877` created at `2026-04-17 19:16:19 UTC`
28
-
29
- The latest observed detail crawl time for those rows is `2026-04-17 19:18:03 UTC`.
30
-
31
- This means the uploaded snapshot includes comment coverage at least through that item range. Not every nearby item necessarily has comments, because many items on pr0gramm simply have zero comments.
32
-
33
- ## Database layout
34
-
35
- The SQLite file contains these tables:
36
-
37
- - `comments`
38
- - `items`
39
- - `crawl_state`
40
- - `item_detail_failures`
41
-
42
- ### `comments`
43
-
44
- One row per comment.
45
-
46
- Columns:
47
-
48
- - `comment_id` INTEGER PRIMARY KEY
49
- - `item_id` INTEGER NOT NULL
50
- - `parent_comment_id` INTEGER
51
- - `comment_time` INTEGER
52
- - `score` INTEGER
53
- - `upvotes` INTEGER
54
- - `downvotes` INTEGER
55
- - `crawl_time` INTEGER NOT NULL
56
- - `user_name` TEXT
57
- - `user_id` INTEGER
58
- - `user_profile_url` TEXT
59
- - `body` TEXT
60
- - `raw_json` TEXT NOT NULL
61
-
62
- ### `items`
63
-
64
- One row per crawled item.
65
-
66
- Columns:
67
-
68
- - `item_id` INTEGER PRIMARY KEY
69
- - `promoted` INTEGER
70
- - `flags` INTEGER
71
- - `created_at` INTEGER
72
- - `user_name` TEXT
73
- - `source_feed` TEXT NOT NULL
74
- - `crawl_time` INTEGER NOT NULL
75
- - `raw_json` TEXT NOT NULL
76
- - `detail_crawl_time` INTEGER
77
-
78
- ### `crawl_state`
79
-
80
- Crawler checkpoint state.
81
-
82
- Columns:
83
-
84
- - `key` TEXT PRIMARY KEY
85
- - `value` TEXT NOT NULL
86
- - `updated_at` INTEGER NOT NULL
87
-
88
- ### `item_detail_failures`
89
-
90
- Tracks item detail fetch failures.
91
-
92
- Columns:
93
-
94
- - `item_id` INTEGER PRIMARY KEY
95
- - `first_failed_at` INTEGER NOT NULL
96
- - `last_failed_at` INTEGER NOT NULL
97
- - `attempt_count` INTEGER NOT NULL
98
- - `last_error` TEXT NOT NULL
99
- - `terminal` INTEGER NOT NULL DEFAULT 0
100
- - `resolved_at` INTEGER
101
-
102
- ## Notes
103
-
104
- - Unix timestamps are stored as integer seconds.
105
- - `raw_json` keeps the original API payload for reproducibility.
106
- - The database may contain items without comments.
107
- - The database may also contain unresolved detail failures for some items that need a later retry.
108
-
109
- ## Example queries
110
-
111
- Show the latest item with at least one stored comment:
112
-
113
- ```sql
114
- SELECT item_id
115
- FROM comments
116
- ORDER BY item_id DESC
117
- LIMIT 1;
118
- ```
119
-
120
- Show recent commented items:
121
-
122
- ```sql
123
- SELECT item_id, COUNT(*) AS comments
124
- FROM comments
125
- GROUP BY item_id
126
- ORDER BY item_id DESC
127
- LIMIT 20;
128
- ```
129
-
130
- Inspect the newest crawled items:
131
-
132
- ```sql
133
- SELECT item_id,
134
- datetime(created_at, 'unixepoch') AS created_at_utc,
135
- datetime(detail_crawl_time, 'unixepoch') AS detail_crawl_time_utc
136
- FROM items
137
- ORDER BY item_id DESC
138
- LIMIT 20;
139
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pr0gramm.sqlite3 DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:468a4900e10655a170350bc814c97ff69ccb3c8460bb69371c5627b3b112e2f1
3
- size 51531698176