From 592d2c7ddab8ffc8aee7c224ed18d71752a9b005 Mon Sep 17 00:00:00 2001 From: Nate E TeBlunthuis Date: Thu, 2 Jul 2020 17:40:17 -0700 Subject: [PATCH 1/1] script for getting submissions dumps from pushshift. --- pull_pushift_submissions.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 pull_pushift_submissions.sh diff --git a/pull_pushift_submissions.sh b/pull_pushift_submissions.sh new file mode 100755 index 0000000..addc01c --- /dev/null +++ b/pull_pushift_submissions.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +user_agent='nathante teblunthuis ' +output_dir='/gscratch/comdata/raw_data/reddit_dumps/submissions' +base_url='https://files.pushshift.io/reddit/submissions/' + +wget -r --no-parent -A 'RS_20*.bz2' -U $user_agent -P $output_dir -nd $base_url +wget -r --no-parent -A 'RS_20*.xz' -U $user_agent -P $output_dir -nd $base_url +wget -r --no-parent -A 'RS_20*.zst' -U $user_agent -P $output_dir -nd $base_url +wget -r --no-parent -A 'RS_20*.bz2' -U $user_agent -P $output_dir -nd $base_url/old_v1_data +wget -r --no-parent -A 'RS_20*.xz' -U $user_agent -P $output_dir -nd $base_url/old_v1_data +wget -r --no-parent -A 'RS_20*.zst' -U $user_agent -P $output_dir -nd $base_url/old_v1_data + + -- 2.39.5