Kodi Community Forum

Full Version: Python module to save to .CSV?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I'm having trouble parsing a JSON website into a music addon, I can get BeautifulSoup working fine, but obviously it won't parse JSON. 

I could perhaps get BS working if I could parse the JSON file into a .csv file. The problem is I can't find a module that would do this. Does anyone know how I could do this? Or what command would allow me to print some JSON output into a BS readable format?

Thanks
Moved to add-on development
Should be packed with Python... "Import cvs"

Example found here: http://blog.appliedinformaticsinc.com/ho...ng-python/

BTW I'd suggest posting your existing code, I can take a look. I don't believe cvs will be the solution you are looking for.
What's wrong with json module for parsing JSON?
(2019-07-13, 23:38)Roman_V_M Wrote: [ -> ]What's wrong with json module for parsing JSON?

I can't work out how to get the data into the right format and into beautifulsoup scraper I'm using.