From 29ae62c83ecd8db8cee00d8095362a8856b9d3e6 Mon Sep 17 00:00:00 2001 From: Nathan TeBlunthuis Date: Tue, 31 Mar 2020 16:16:36 -0700 Subject: [PATCH 1/1] create 'latest.csv' to link to the most recent output. --- keywords/output/csv/latest.csv | 1 + keywords/src/compile_translated_phrases.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 120000 keywords/output/csv/latest.csv diff --git a/keywords/output/csv/latest.csv b/keywords/output/csv/latest.csv new file mode 120000 index 0000000..31365d3 --- /dev/null +++ b/keywords/output/csv/latest.csv @@ -0,0 +1 @@ +2020-03-31_wikidata_item_labels_1.csv \ No newline at end of file diff --git a/keywords/src/compile_translated_phrases.sh b/keywords/src/compile_translated_phrases.sh index 14a225d..bc7c833 100755 --- a/keywords/src/compile_translated_phrases.sh +++ b/keywords/src/compile_translated_phrases.sh @@ -2,7 +2,7 @@ # For now these scripts don't accept command line arguments. It's an MVP -echo "Reading Google trends" +echo "Reading Google trends" python3 collect_trends.py echo "Searching for Wikidata items using base_terms.txt" @@ -14,3 +14,5 @@ python3 wikidata_search.py ../output/intermediate/related_searches_rising.csv .. echo "Finding translations from Wikidata using sparql" python3 wikidata_translations.py ../output/intermediate/wikidata_search_results_from_gtrends.csv ../output/intermediate/wikidata_search_results.csv --topN 10 20 --output ../output/csv/$(date '+%Y-%m-%d')_wikidata_item_labels.csv +rm latest.csv +ln -s $(ls -tr | tail -n 1) latest.csv -- 2.39.5