From: Nate E TeBlunthuis Date: Fri, 3 Jul 2020 20:54:55 +0000 (-0700) Subject: bugfix in retrieving old data and rename file. X-Git-Url: https://code.communitydata.science/cdsc_reddit.git/commitdiff_plain/4dd9a210e65432e844462c3ee88187d5d99bb78d bugfix in retrieving old data and rename file. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e6ce51e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/#pull_pushshift# +/.#pull_pushshift diff --git a/pull_pushift_submissions.sh b/pull_pushshift_submissions.sh similarity index 86% rename from pull_pushift_submissions.sh rename to pull_pushshift_submissions.sh index f704435..f64a09f 100755 --- a/pull_pushift_submissions.sh +++ b/pull_pushshift_submissions.sh @@ -7,8 +7,8 @@ base_url='https://files.pushshift.io/reddit/submissions/' wget -r --no-parent -A 'RS_20*.bz2' -U $user_agent -P $output_dir -nd -nc $base_url wget -r --no-parent -A 'RS_20*.xz' -U $user_agent -P $output_dir -nd -nc $base_url wget -r --no-parent -A 'RS_20*.zst' -U $user_agent -P $output_dir -nd -nc $base_url -wget -r --no-parent -A 'RS_20*.bz2' -U $user_agent -P $output_dir -nd -nc $base_url/old_v1_data -wget -r --no-parent -A 'RS_20*.xz' -U $user_agent -P $output_dir -nd -nc $base_url/old_v1_data -wget -r --no-parent -A 'RS_20*.zst' -U $user_agent -P $output_dir -nd -nc $base_url/old_v1_data +wget -r --no-parent -A 'RS_20*.bz2' -U $user_agent -P $output_dir -nd -nc $base_url/old_v1_data/ +wget -r --no-parent -A 'RS_20*.xz' -U $user_agent -P $output_dir -nd -nc $base_url/old_v1_data/ +wget -r --no-parent -A 'RS_20*.zst' -U $user_agent -P $output_dir -nd -nc $base_url/old_v1_data/