Last active
December 23, 2018 06:57
-
-
Save dojutsu-user/a7f13cc73d5bc55b1f58ff82200d2c97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
PATH_TO_OUTPUT_FILE = os.path.join('.', 'Dataset', '2009-2015.json') | |
def main(): | |
final_dict = {} | |
year_with_link = get_year_with_link() | |
for year in year_with_link.keys(): | |
orgs = get_organizations_list_with_links(year_with_link[year]) | |
final_dict[year] = orgs | |
for org in final_dict[year].keys(): | |
org_info = get_org_projects_info(final_dict[year][org]) | |
final_dict[year][org] = org_info | |
json_dict = json.dumps(final_dict) | |
open(PATH_TO_OUTPUT_FILE, 'w').write(json_dict) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment