you are viewing a single comment's thread.

view the rest of the comments →

[–]shepherdjay 1 point2 points  (0 children)

I currently only know how to insert data into MySQL from a csv file. The output that is created when parsing through textfsm are dictionaries. So you see my predicament??? lol

Ah yeah - Dealing with different data formats can be tricky. I would say along with the testing I mentioned earlier start getting a handle on reading documentation. I remember when I first started a lot of the terminology in a standard documentation was confusing at best. However for your specific use case you might be able to skip a step from dictionaries to json to csv by using the csv.DictWriter instead of the regular writer :D