From: Nate E TeBlunthuis Date: Fri, 3 Jul 2020 00:40:17 +0000 (-0700) Subject: script for getting submissions dumps from pushshift. X-Git-Url: https://code.communitydata.science/cdsc_reddit.git/commitdiff_plain/592d2c7ddab8ffc8aee7c224ed18d71752a9b005?hp=64e9408a65a5b40c4a62a904017dec14c80cc77f script for getting submissions dumps from pushshift. --- 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 + +