@@ -0,0 +1,1068 @@
+# Utilitary to parse a txt file to the json format to make contributions easier%0A# The file must be in the following format%0A#%09%09%09%22quote1%22,Author%0A#%09    %22quote2%22,Other Author%0A# To run: python quotes_to_json.py%0A# if the quotes file is not named quotes.txt them run: python quotes_to_json.py --file=%22File name%22%0A%0Aimport json%0Aimport argparse%0Aimport os%0Aimport sys%0A%0Aif __name__ == %22__main__%22:%0A%09parser = argparse.ArgumentParser()%0A%09parser.add_argument(%22--file%22, help=%22Name of the quotes file%22, default=%22quotes.txt%22)%0A%09args = parser.parse_args()%0A%0A%09file_name = args.file%0A%0A%09if not os.path.exists(file_name):%0A%09%09sys.exit(%22Error: The specified file doesn't exists.%22)%0A%0A%09quotes = %5B%5D%0A%09with open(file_name, 'r') as f:%0A%09%09for line in f:%0A%09%09%09divided_string = line.strip(%22%5Cn%22).split('%5C%22,')%0A%09%09%09quote = divided_string%5B0%5D.strip('%5C%22')%0A%09%09%09author = divided_string%5B1%5D%5B1:%5D if divided_string%5B1%5D%5B0%5D == ' ' else divided_string%5B1%5D%0A%09%09%09quotes.append(%7B%0A%09%09%09%09%22author%22:  author,%0A%09%09%09%09%22quote%22: quote%0A%09%09%09%7D)%0A%0A%09final_dictionary = %7B%22data%22:quotes%7D%0A%0A%09with open('quotes.json', 'w') as j:%0A%09%09json.dump(final_dictionary, j)%0A%0A%0A

Create txt_to_json.py