From 4dd9a210e65432e844462c3ee88187d5d99bb78d Mon Sep 17 00:00:00 2001 From: Nate E TeBlunthuis Date: Fri, 3 Jul 2020 13:54:55 -0700 Subject: [PATCH] bugfix in retrieving old data and rename file. --- .gitignore | 2 ++ ..._pushift_submissions.sh => pull_pushshift_submissions.sh | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .gitignore rename pull_pushift_submissions.sh => pull_pushshift_submissions.sh (86%) 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/ -- 2.39.5