Python usage in Readme is not updated
Closed this issue · 1 comments
Vultik commented
The python code example in the readme doesn't work, for example for import.
from notion2md.exporter import markdown_exporter, string_exporter
# block_markdown_exporter will make markdown file on your output path
markdown_exporter(page_id='...',output_path='...',download=True)
# block_string_exporter will return output as String type
md = string_exporter(page_id='...',output_path='...')
The example should be updated with the new architecture.
from notion2md.exporter.block import StringExporter
exporter = StringExporter(block_url="...")
echo724 commented
Thanks! I forgot to update it I appreciate it