[Python] Best Way To Handle Data?

apex1

Regular Member
Joined
May 29, 2015
Messages
217
Reaction score
182
Hey guys I'm working on a craigslist poster and I need to know the best way to handle data..
  • ad title
  • ad description (multi-line)
  • price
etc

I'm thinking about make 1 folder per ad, then having a text file for title, desc, price - does that make sense? From there how should I load them into Python?

Do I use a dictionary or some kind of special list?

Need advice.

Cheers!
 
Hi,

You could create a custom class with those 3 properties and then store them in a list
 
Back
Top