]> code.communitydata.science - covid19.git/commitdiff
create 'latest.csv' to link to the most recent output.
authorNathan TeBlunthuis <nathante@uw.edu>
Tue, 31 Mar 2020 23:16:36 +0000 (16:16 -0700)
committerNathan TeBlunthuis <nathante@uw.edu>
Tue, 31 Mar 2020 23:16:36 +0000 (16:16 -0700)
keywords/output/csv/latest.csv [new symlink]
keywords/src/compile_translated_phrases.sh

diff --git a/keywords/output/csv/latest.csv b/keywords/output/csv/latest.csv
new file mode 120000 (symlink)
index 0000000..31365d3
--- /dev/null
@@ -0,0 +1 @@
+2020-03-31_wikidata_item_labels_1.csv
\ No newline at end of file
index 14a225d77e71def0aafcf33b50b6cc53c1dd2580..bc7c833a1dc006ee013cee6ae64b0b2926870139 100755 (executable)
@@ -2,7 +2,7 @@
 
 # For now these scripts don't accept command line arguments. It's an MVP
 
 
 # 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"
 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
 
 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

Community Data Science Collective || Want to submit a patch?