]> code.communitydata.science - cdsc_reddit.git/commitdiff
update the reddit comment dumps
authorNate E TeBlunthuis <nathante@n2232.hyak.local>
Fri, 3 Jul 2020 17:41:13 +0000 (10:41 -0700)
committerNate E TeBlunthuis <nathante@n2232.hyak.local>
Fri, 3 Jul 2020 17:41:13 +0000 (10:41 -0700)
pull_pushshift_comments.sh [new file with mode: 0755]

diff --git a/pull_pushshift_comments.sh b/pull_pushshift_comments.sh
new file mode 100755 (executable)
index 0000000..bfe3938
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+user_agent='nathante teblunthuis <nathante@uw.edu>'
+output_dir='/gscratch/comdata/raw_data/reddit_dumps/comments'
+base_url='https://files.pushshift.io/reddit/comments/'
+
+wget -r --no-parent -A 'RC_20*.bz2' -U $user_agent -P $output_dir -nd -nc $base_url
+wget -r --no-parent -A 'RC_20*.xz' -U $user_agent -P $output_dir -nd -nc $base_url
+wget -r --no-parent -A 'RC_20*.zst' -U $user_agent -P $output_dir -nd -nc $base_url
+
+
+

Community Data Science Collective || Want to submit a patch?