]> code.communitydata.science - covid19.git/commitdiff
renamed the wikipedia_views module to wikipedia
authorBenjamin Mako Hill <mako@atdot.cc>
Wed, 1 Apr 2020 14:51:20 +0000 (07:51 -0700)
committerBenjamin Mako Hill <mako@atdot.cc>
Wed, 1 Apr 2020 14:51:20 +0000 (07:51 -0700)
wikipedia/analysis/output/top10_views_by_project_date.csv [moved from wikipedia_views/analysis/output/top10_views_by_project_date.csv with 100% similarity]
wikipedia/analysis/pageview_example.R [moved from wikipedia_views/analysis/pageview_example.R with 100% similarity]
wikipedia/logs/placeholder [moved from wikipedia_views/logs/placeholder with 100% similarity]
wikipedia/resources/enwp_wikiproject_covid19_articles.txt [moved from wikipedia_views/resources/enwp_wikiproject_covid19_articles.txt with 100% similarity]
wikipedia/scripts/fetch_enwiki_daily_views.py [moved from wikipedia_views/scripts/fetch_enwiki_daily_views.py with 96% similarity]
wikipedia/scripts/fetch_enwiki_revisions.py [moved from wikipedia_views/scripts/fetch_enwiki_revisions.py with 97% similarity]
wikipedia/scripts/wikiproject_scraper.py [moved from wikipedia_views/scripts/wikiproject_scraper.py with 97% similarity]

similarity index 96%
rename from wikipedia_views/scripts/fetch_enwiki_daily_views.py
rename to wikipedia/scripts/fetch_enwiki_daily_views.py
index d8c185a9fa9cb5da42862a91917307ef5c1975c9..c250bfe94aa23106bc900556b93e142860213532 100755 (executable)
@@ -25,8 +25,8 @@ from csv import DictWriter
 def parse_args():
 
     parser = argparse.ArgumentParser(description='Call the views API to collect Wikipedia view data.')
 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), 
     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), 
similarity index 97%
rename from wikipedia_views/scripts/fetch_enwiki_revisions.py
rename to wikipedia/scripts/fetch_enwiki_revisions.py
index 77c5664fd90800e176aa6e446bc918686c466738..cbb283d641c601c50b7d28f7d743210367a610f8 100755 (executable)
@@ -24,8 +24,8 @@ from mw import api
 def parse_args():
 
     parser = argparse.ArgumentParser(description='Call the views API to collect Wikipedia revision data.')
 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), 
     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), 
similarity index 97%
rename from wikipedia_views/scripts/wikiproject_scraper.py
rename to wikipedia/scripts/wikiproject_scraper.py
index c9eaaac86ec38ec2a531f6b30f2de665ba48fa47..6e01051dd531b98b1d768dc0db55babe93581f7c 100755 (executable)
@@ -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.')
 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()
     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()

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