diff --git a/scraper/gen_code_gov_json.py b/scraper/gen_code_gov_json.py
index <HASH>..<HASH> 100755
--- a/scraper/gen_code_gov_json.py
+++ b/scraper/gen_code_gov_json.py
@@ -78,6 +78,8 @@ if __name__ == '__main__':
     parser.add_argument('--github-orgs', type=str, nargs='+', help='GitHub Organizations')
     parser.add_argument('--github-repos', type=str, nargs='+', help='GitHub Repositories')
 
+    parser.add_argument('--to-csv', action='store_true', help='Toggle output to CSV')
+
     args = parser.parse_args()
 
     agency = args.agency
@@ -103,6 +105,11 @@ if __name__ == '__main__':
     with open('code.json', 'w') as fp:
         fp.write(str_org_projects)
 
+    if args.to_csv:
+        with open('code.csv', 'w') as fp:
+            for project in code_json['projects']:
+                fp.write(to_doe_csv(project) + '\n')
+
     logger.info('Agency: %s', agency)
     logger.info('Organization: %s', organization)
     logger.info('Number of Projects: %s', len(code_json['projects']))
Added flag for processing projects into a CSV file