Python Forum
How and where to store a data for path tree?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How and where to store a data for path tree?
#1
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.
Reply


Messages In This Thread
How and where to store a data for path tree? - by zayacEBN - Aug-21-2020, 08:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can users store data temporarily in flask app? darktitan 6 3,058 Mar-21-2022, 06:38 PM
Last Post: darktitan
  Extract json-ld schema markup data and store in MongoDB Nuwan16 0 2,496 Apr-05-2020, 04:06 PM
Last Post: Nuwan16
  how to store data from the soup in the loop? zarize 1 1,694 Mar-02-2020, 04:17 PM
Last Post: Larz60+
  Cant set api response as tree in Element tree hey_arnold 4 3,738 Mar-04-2019, 03:25 PM
Last Post: dsarin

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020