Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable data_type is incorrectly used #31

Merged
merged 1 commit into from
Jul 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
variable data_type is incorrectly used
  • Loading branch information
praveenr019 committed May 31, 2022
commit 92a1feb83b69fb23eb50a4ac1e69b6805d763e84
6 changes: 3 additions & 3 deletions get-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ fi

for data_type in warc wat wet; do

echo "Downloading Common Crawl paths listings (${data_type^^} files of $CRAWL)..."
echo "Downloading Common Crawl paths listings (${data_type} files of $CRAWL)..."

mkdir -p crawl-data/$CRAWL/
listing=crawl-data/$CRAWL/$data_type.paths.gz
cd crawl-data/$CRAWL/
wget --timestamping $BASE_URL/$listing
cd -

echo "Downloading sample ${data_type^^} file..."
echo "Downloading sample ${data_type} file..."

file=$(gzip -dc $listing | head -1)
mkdir -p $(dirname $file)
Expand All @@ -40,7 +40,7 @@ for data_type in warc wat wet; do
echo file:$PWD/$file >>$input

input=input/all_${data_type}_${CRAWL}.txt
echo "All ${data_type^^} files of ${CRAWL}: $input"
echo "All ${data_type} files of ${CRAWL}: $input"
gzip -dc $listing >$input

done
Expand Down