X-Git-Url: https://code.communitydata.science/covid19.git/blobdiff_plain/282208507a28e1b77f93e0548906e3ffbb485bde..a86c3a97eec2b5e6d2e2762518d83879f1cfec45:/transliterations/src/wikidata_search.py 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)