13
0

script for getting submissions dumps from pushshift.

This commit is contained in:
Nate E TeBlunthuis 2020-07-02 17:40:17 -07:00
parent 64e9408a65
commit 592d2c7dda

14
pull_pushift_submissions.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
user_agent='nathante teblunthuis <nathante@uw.edu>'
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