Prologue
We all know that we can use the Stack Exchange Data Explorer to perform queries in (most if not all) of the Stack Exchange tables. The tables listed, as for [2021-08-05 Thu 18:21], are 29. They are listed below (in alphabetical order)
Badges
CloseAsOffTopicReasonTypes
CloseReasonTypes
Comments
FlagTypes
PendingFlags
PostFeedback
PostHistory
PostHistoryTypes
PostLinks
PostNoticeTypes
PostNotices
PostTags
PostTypes
Posts
PostsWithDeleted
ReviewRejectionReasons
ReviewTaskResultTypes
ReviewTaskResults
ReviewTaskStates
ReviewTaskTypes
ReviewTasks
SuggestedEditVotes
SuggestedEdits
TagSynonyms
Tags
Users
VoteTypes
Votes
In addition to that, we know the data dumps can be found in the Stack Exchange site at the Internet Archive as XML files.
I've downloaded the torrent file and I've decompressed some of the *.7z
files, but I've noticed that only 8 XML files are provided for each site (see below).
7z l ~/Downloads/stack-exchange-data-dump/emacs.stackexchange.com.7z
7-Zip [64] 17.04 : Copyright (c) 1999-2021 Igor Pavlov : 2017-08-28
p7zip Version 17.04 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,16 CPUs x64)
Scanning the drive for archives:
1 file, 43688623 bytes (42 MiB)
Listing archive: /home/myusername/Downloads/stack-exchange/emacs.stackexchange.com.7z
--
Path = /home/myusername/Downloads/stack-exchange/emacs.stackexchange.com.7z
Type = 7z
Physical Size = 43688623
Headers Size = 322
Method = BZip2
Solid = +
Blocks = 3
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2021-06-06 20:08:38 ....A 6234792 5551134 Badges.xml
2021-06-06 20:08:39 ....A 25008971 Comments.xml
2021-06-06 20:08:43 ....A 129528581 22082456 PostHistory.xml
2021-06-06 20:08:46 ....A 531208 16054711 PostLinks.xml
2021-06-06 20:08:46 ....A 72569952 Posts.xml
2021-06-06 20:08:46 ....A 56027 Tags.xml
2021-06-06 20:08:47 ....A 10755066 Users.xml
2021-06-06 20:08:47 ....A 16669869 Votes.xml
------------------- ----- ------------ ------------ ------------------------
2021-06-06 20:08:47 261354466 43688301 8 files
As we can see above, 8 XML files are provided: Badges.xml
, Comments.xml
, PostHistory.xml
, PostLinks.xml
, Posts.xml
, Tags.xml
, Users.xml
and Votes.xml
which correspond to the table names.
The question
I have two questions
- Why aren't the 29 tables provided for each Stack Exchange site in the torrent file at the Internet Archive?
- Is there any effortless way I can get the data dump of the 29 tables for each site?
Any help is really appreciated.
Additional context
I've noticed that there is the Download CSV
button in the Stack Exchange Data Explorer (see image below)
I was thinking in using this feature for writing SELECT * FROM <<table-name>>
for each table so that I can get the data from the Download CSV
button. However, I consider this my last option since that would imply more effort (I would need to do this 21 * n times, where n is the number of Stack Exchange sites).
Badges.xml
,Comments.xml
,PostHistory.xml
,PostLinks.xml
,Posts.xml
,Tags.xml
,Users.xml
andVotes.xml
are provided for each site.