Added check for chunk csv
This commit is contained in:
@@ -16,11 +16,15 @@ import datetime
|
|||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import pandas
|
||||||
import time
|
import time
|
||||||
import utils.pretty as ct
|
import utils.pretty as ct
|
||||||
import ijson
|
import ijson
|
||||||
|
|
||||||
def pullPolicyExechistories(url, choice, policiesnames, outputjson: bool):
|
def pullPolicyExechistories(url, choice, policiesnames, outputjson: bool):
|
||||||
|
if not os.path.exists('chunkinator.csv'):
|
||||||
|
with open('chunkinator.csv', 'x') as file:
|
||||||
|
pass
|
||||||
headers = {
|
headers = {
|
||||||
"X-APIKey": os.getenv('APIKEY')
|
"X-APIKey": os.getenv('APIKEY')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user