-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I downloaded this script this morning and it is saving me SO much time. However there is an issue with how lists are generated.
return {"type": list_type, "children": children} needs to be updated to return {"listType": list_type, "type": "list", "children": children}.
Additionally I made a minor tweak so it simply returns the value to the clipboard rather than displaying it within the terminal
I added import subprocess at the top
And adjusted the final lines to
json_data = html_to_json(html_input)
print('JSON data copied to clipboard')
subprocess.run("pbcopy", text=True, input=json_data)
Finally, on macOS users will need to install BeautifulSoup with python -m pip install beautifulsoup4 --break-system-packages
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels