X-Git-Url: https://code.communitydata.science/covid19.git/blobdiff_plain/282208507a28e1b77f93e0548906e3ffbb485bde..50f58a3887692505e7408da3784d3d55c55e6122:/transliterations/src/wikidata_search.py?ds=inline diff --git a/transliterations/src/wikidata_search.py b/transliterations/src/wikidata_search.py index 21e8598..a3abbc0 100644 --- a/transliterations/src/wikidata_search.py +++ b/transliterations/src/wikidata_search.py @@ -68,12 +68,12 @@ def read_google_trends_files(terms_files): def trawl_google_trends(terms_files, outfile = None, mode='w'): - terms = read_google_trends_files(terms_files) + terms = list(read_google_trends_files(terms_files)) resultset = run_wikidata_searches(terms) resultset.to_csv(outfile, mode) def trawl_base_terms(infiles, outfile = None, mode='w'): - terms = chain(* (open(infile,'r') for infile in infiles)) + terms = list(chain(* (open(infile,'r') for infile in infiles))) resultset = run_wikidata_searches(terms) resultset.to_csv(outfile, mode)