Spaces:
Sleeping
Sleeping
Download process_page.py from sbhatti2009/NotionGPT: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/sbhatti2009/NotionGPT/resolve/main/process_page.py
- Command line
-
hf download hf://spaces/sbhatti2009/NotionGPT/process_page.py
-
curl -L -o process_page.py https://huggingface.co/spaces/sbhatti2009/NotionGPT/resolve/main/process_page.py
506 Bytes
| import argparse | |
| import json | |
| from blueprints.utils import process_page | |
| def pretty_print_blueprint(page_id): | |
| blueprint_json = process_page(page_id) | |
| print(json.dumps(blueprint_json, indent=4)) | |
| def main(): | |
| parser = argparse.ArgumentParser(description="Process and print a Notion page as a JSON blueprint.") | |
| parser.add_argument("page_id", help="The Notion page ID to process") | |
| args = parser.parse_args() | |
| pretty_print_blueprint(args.page_id) | |
| if __name__ == "__main__": | |
| main() | |