Aug-21-2020, 08:34 PM
Hello.
I am developing a small scrapper that allows to save images from different urls and save it on many different folders. I have the skeleton for directory hierarchy(6-8 folders and 3-6 subfolders) and basic names, but each session I need to create new root folder with current date, and some custom text from text input.
I want that my folder structure would be easy to edit from the outside of script. Also I want to be able in future to add a feature where I could visually create directory tree with using wxpython treectrls.
My question is what's the best way to store all path tree data? So
1) It would be easy and comprehensively to edit it outside of a script
2) It could be quickly converted and handled by python.
Maybe xml, or json or a simple python file with lists(but it looks too hard to read a hierarchy for me, maybe I wrong)?
I couldn't find the solution or common pattern at google.
I am developing a small scrapper that allows to save images from different urls and save it on many different folders. I have the skeleton for directory hierarchy(6-8 folders and 3-6 subfolders) and basic names, but each session I need to create new root folder with current date, and some custom text from text input.
I want that my folder structure would be easy to edit from the outside of script. Also I want to be able in future to add a feature where I could visually create directory tree with using wxpython treectrls.
My question is what's the best way to store all path tree data? So
1) It would be easy and comprehensively to edit it outside of a script
2) It could be quickly converted and handled by python.
Maybe xml, or json or a simple python file with lists(but it looks too hard to read a hierarchy for me, maybe I wrong)?
I couldn't find the solution or common pattern at google.