Python module to save to .CSV?
#1
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
Reply
#2
Moved to add-on development
My Signature
Links to : Forum rules (wiki) | Banned_Add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create_Music_Library (wiki) | HOW-TO:Create_Video_Library (wiki) || Artwork (wiki) | Basic_controls (wiki) | Import-export_library (wiki) | Movie_sets (wiki) | NFO_files (wiki) | Quick start guide (wiki)
Reply
#3
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.
Image Lunatixz - Kodi / Beta repository
Image PseudoTV - Forum | Website | Youtube | Twitter | Help?
Reply
#4
What's wrong with json module for parsing JSON?
Raspberry PI 2 + LibreELEC 8 (Kodi 17)
Samsung Galaxy Tab A 10.1 + Kodi 17 for Android
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Python module to save to .CSV?00