def request_sender(i):
request to the database with api calls
dict1 = {"file1":"id1,id2,id3",
"file2":"id4,id5,id6"}
for i in dict1.keys():
for j in dict1[i]:
request_sender(i)
currently my script automatically run when all the ids of a single file are updated and each file is an ipynb file i can import using %run the code is working perfectly.
The only problem here is i have to manually enter the file and ids the id's are inside the file also if am able to read the file into my python code and process the code using regex function or string manipulation i can find and fetch the keys.
but i don't know how to read an ipynb file into my python code