From: Benjamin Mako Hill Date: Wed, 1 Apr 2020 14:51:20 +0000 (-0700) Subject: renamed the wikipedia_views module to wikipedia X-Git-Url: https://code.communitydata.science/covid19.git/commitdiff_plain/784458f2067287871dcfeefe8348fcc71a230244?hp=6493361fbd95f44a3b27131f4f79329d40e61c90 renamed the wikipedia_views module to wikipedia --- diff --git a/wikipedia_views/analysis/output/top10_views_by_project_date.csv b/wikipedia/analysis/output/top10_views_by_project_date.csv similarity index 100% rename from wikipedia_views/analysis/output/top10_views_by_project_date.csv rename to wikipedia/analysis/output/top10_views_by_project_date.csv diff --git a/wikipedia_views/analysis/pageview_example.R b/wikipedia/analysis/pageview_example.R similarity index 100% rename from wikipedia_views/analysis/pageview_example.R rename to wikipedia/analysis/pageview_example.R diff --git a/wikipedia_views/logs/placeholder b/wikipedia/logs/placeholder similarity index 100% rename from wikipedia_views/logs/placeholder rename to wikipedia/logs/placeholder diff --git a/wikipedia_views/resources/enwp_wikiproject_covid19_articles.txt b/wikipedia/resources/enwp_wikiproject_covid19_articles.txt similarity index 100% rename from wikipedia_views/resources/enwp_wikiproject_covid19_articles.txt rename to wikipedia/resources/enwp_wikiproject_covid19_articles.txt diff --git a/wikipedia_views/scripts/fetch_enwiki_daily_views.py b/wikipedia/scripts/fetch_enwiki_daily_views.py similarity index 96% rename from wikipedia_views/scripts/fetch_enwiki_daily_views.py rename to wikipedia/scripts/fetch_enwiki_daily_views.py index d8c185a..c250bfe 100755 --- a/wikipedia_views/scripts/fetch_enwiki_daily_views.py +++ b/wikipedia/scripts/fetch_enwiki_daily_views.py @@ -25,8 +25,8 @@ from csv import DictWriter def parse_args(): parser = argparse.ArgumentParser(description='Call the views API to collect Wikipedia view data.') - parser.add_argument('-o', '--output_folder', help='Where to save output', default="wikipedia_views/data", type=str) - parser.add_argument('-i', '--article_file', help='File listing article names', default="wikipedia_views/resources/enwp_wikiproject_covid19_articles.txt", type=str) + parser.add_argument('-o', '--output_folder', help='Where to save output', default="wikipedia/data", type=str) + parser.add_argument('-i', '--article_file', help='File listing article names', default="wikipedia/resources/enwp_wikiproject_covid19_articles.txt", type=str) parser.add_argument('-d', '--query_date', help='Date if not yesterday, in YYYYMMDD format.', type=str) parser.add_argument('-L', '--logging_level', help='Logging level. Options are debug, info, warning, error, critical. Default: info.', default='info', type=str), parser.add_argument('-W', '--logging_destination', help='Logging destination file. (default: standard error)', type=str), diff --git a/wikipedia_views/scripts/fetch_enwiki_revisions.py b/wikipedia/scripts/fetch_enwiki_revisions.py similarity index 97% rename from wikipedia_views/scripts/fetch_enwiki_revisions.py rename to wikipedia/scripts/fetch_enwiki_revisions.py index 77c5664..cbb283d 100755 --- a/wikipedia_views/scripts/fetch_enwiki_revisions.py +++ b/wikipedia/scripts/fetch_enwiki_revisions.py @@ -24,8 +24,8 @@ from mw import api def parse_args(): parser = argparse.ArgumentParser(description='Call the views API to collect Wikipedia revision data.') - parser.add_argument('-o', '--output_folder', help='Where to save output', default="wikipedia_views/data", type=str) - parser.add_argument('-i', '--article_file', help='File listing article names', default="wikipedia_views/resources/enwp_wikiproject_covid19_articles.txt", type=str) + parser.add_argument('-o', '--output_folder', help='Where to save output', default="wikipedia/data", type=str) + parser.add_argument('-i', '--article_file', help='File listing article names', default="wikipedia/resources/enwp_wikiproject_covid19_articles.txt", type=str) parser.add_argument('-d', '--query_date', help='Date if not yesterday, in YYYYMMDD format.', type=str) parser.add_argument('-L', '--logging_level', help='Logging level. Options are debug, info, warning, error, critical. Default: info.', default='info', type=str), parser.add_argument('-W', '--logging_destination', help='Logging destination file. (default: standard error)', type=str), diff --git a/wikipedia_views/scripts/wikiproject_scraper.py b/wikipedia/scripts/wikiproject_scraper.py similarity index 97% rename from wikipedia_views/scripts/wikiproject_scraper.py rename to wikipedia/scripts/wikiproject_scraper.py index c9eaaac..6e01051 100755 --- a/wikipedia_views/scripts/wikiproject_scraper.py +++ b/wikipedia/scripts/wikiproject_scraper.py @@ -29,7 +29,7 @@ from bs4 import BeautifulSoup def parse_args(): parser = argparse.ArgumentParser(description='Get a list of pages tracked by the COVID-19 Wikiproject.') - parser.add_argument('-o', '--output_file', help='Where to save output', default="wikipedia_views/resources/enwp_wikiproject_covid19_articles.txt", type=str) + parser.add_argument('-o', '--output_file', help='Where to save output', default="wikipedia/resources/enwp_wikiproject_covid19_articles.txt", type=str) parser.add_argument('-L', '--logging_level', help='Logging level. Options are debug, info, warning, error, critical. Default: info.', default='info'), parser.add_argument('-W', '--logging_destination', help='Logging destination file. (default: standard error)', type=str), args = parser.parse_args()