add python script parse export json file for 2018-2022 history

56 views
Skip to first unread message

Miller Qb

unread,
Jun 8, 2022, 2:34:39 AM6/8/22
to Session Buddy Discussion
export several json file when using sessionbuddy chrome extension
import fail, 
so just write a script parse old file  for future clear up

https://github.com/qbmiller/session-buddy-parse

nsms

unread,
Oct 1, 2022, 3:37:15 AM10/1/22
to Session Buddy Discussion
Hi! First of all, thank you for making this tool! :)

I had tried to run your tool providing my json backup file in a "file" folder, which stands a spot right above your python script in the folder hierarchy, but I kept getting this error:

C:\Users\voyage\Downloads\test_sb>python3 readSessionBuddyJson.py
session_buddy_backup_2022_09_30_21_33_33.json -----------
Traceback (most recent call last):
  File "C:\Users\voyage\Downloads\test_sb\readSessionBuddyJson.py", line 36, in <module>
    originData = json.load(json_file)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\json\__init__.py", line 335, in loads
    raise JSONDecodeError("Unexpected UTF-8 BOM (decode using utf-8-sig)",
json.decoder.JSONDecodeError: Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)


Do you have any idea how can I sort this problem out?

Thanks!
Reply all
Reply to author
Forward
0 new messages