From 784458f2067287871dcfeefe8348fcc71a230244 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Wed, 1 Apr 2020 07:51:20 -0700 Subject: [PATCH] renamed the wikipedia_views module to wikipedia --- .../analysis/output/top10_views_by_project_date.csv | 0 {wikipedia_views => wikipedia}/analysis/pageview_example.R | 0 {wikipedia_views => wikipedia}/logs/placeholder | 0 .../resources/enwp_wikiproject_covid19_articles.txt | 0 .../scripts/fetch_enwiki_daily_views.py | 4 ++-- .../scripts/fetch_enwiki_revisions.py | 4 ++-- {wikipedia_views => wikipedia}/scripts/wikiproject_scraper.py | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) rename {wikipedia_views => wikipedia}/analysis/output/top10_views_by_project_date.csv (100%) rename {wikipedia_views => wikipedia}/analysis/pageview_example.R (100%) rename {wikipedia_views => wikipedia}/logs/placeholder (100%) rename {wikipedia_views => wikipedia}/resources/enwp_wikiproject_covid19_articles.txt (100%) rename {wikipedia_views => wikipedia}/scripts/fetch_enwiki_daily_views.py (96%) rename {wikipedia_views => wikipedia}/scripts/fetch_enwiki_revisions.py (97%) rename {wikipedia_views => wikipedia}/scripts/wikiproject_scraper.py (97%) 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() -- 2.39.5