echo724 / notion2md

Notion Markdown Exporter with Python Cli
MIT License
682 stars 54 forks source link

Python usage in Readme is not updated #33

Closed Vultik closed 2 years ago

Vultik commented 2 years ago

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 2 years ago

Thanks! I forgot to update it I appreciate it