]> code.communitydata.science - covid19.git/blobdiff - wikipedia/scripts/fetch_enwiki_revisions.py
renamed the wikipedia_views module to wikipedia
[covid19.git] / 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 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.')
-    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), 

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