This file contains hidden or 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 csv | |
| import json | |
| infile = open("J:\data\Prospect\InterimValley\kandidaten (1).json", "r", encoding="utf-8"); | |
| data = json.loads(infile.read()); | |
| f = csv.writer(open("J:\data\Prospect\InterimValley\converted_notes.csv", "w", encoding="utf-8", newline='')) | |
| # Write CSV Header, If you dont need that, remove this line | |
| f.writerow(["candidateId","title","message","lastModifiedByName","dateCreated"]) |
This file contains hidden or 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
| dlfile = save_doc(newdoc,filetype,companyname,doctype,sowNum) | |
| filename = dlfile.replace('SOWoutput\\', '') | |
| @after_this_request | |
| def cleanup(response): | |
| os.remove(dlfile) | |
| return response | |
| return send_file(dlfile, attachment_filename=filename, as_attachment=True) |
This file contains hidden or 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 csv | |
| import os | |
| from urllib.parse import urlparse | |
| import urllib.request | |
| filename = 'C:\\Users\\Josh\\PycharmProjects\\FileDownloader\\inputFile\\caissa_attachments.csv' | |
| ifile = open(filename,"rU") | |
| reader = csv.reader(ifile,delimiter=",") | |
| for row in reader: |