Generate an HTML page based on a Notion document

Overview

Notion Generator

Generate an HTML page based on a Notion document! Still a bit of a work in progress, but I am about to actually use it for some actual content so maybe it's ready enough for you too!

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in flood by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Issues
  • Programmatically getting notion to render the HTML/Markdown

    Programmatically getting notion to render the HTML/Markdown

    Hey! Please disregard this if you already know, but just in case: you can get Notion to give you Markdown or HTML for a notion page by using the endpoints the webapp talks to. It's a fairly involved process and needs three requests for each page:

    curl 'https://www.notion.so/api/v3/enqueueTask' -X POST -H 'Content-Type: application/json' -H 'Cookie: token_v2={{secret}};' --data-raw '{"task":{"eventName":"exportBlock","request":{"block":{"id":"{{id}}"},"recursive":false,"exportOptions":{"exportType":"html","timeZone":"Asia/Kolkata","locale":"en"}}}}'
    #=> task id
    
    curl 'https://www.notion.so/api/v3/getTasks' -X POST -H 'Content-Type: application/json' -H 'Cookie: token_v2={{secret}};' --data-raw '{"taskIds":["{{task id}}"]}'
    # => s3 url
    
    # curl/wget the s3 url
    

    The output HTML is pretty much as it looks on notion minus the JS. Of course, this isn't supposed to be their "official" API, and they might deprecate it or lock it down any moment.

    opened by shrik450 1
Releases(v0.1.0)
Owner
I love orange. Also coding. AND TESTING :heart: Oh and writing! Oh I also don't like writing bios...
null
Like jq, but for HTML. Uses CSS selectors to extract bits content from HTML files.

Like jq, but for HTML. Uses CSS selectors to extract bits content from HTML files. Mozilla's MDN has a good reference for CSS selector syntax.

Michael Maclean 5.2k Nov 20, 2021
Generate short, memorable phrases for throw-away names.

Generates three-word phrases of the form intensifier-adjective-noun, just like GitHub default repo names.

null 6 Sep 21, 2021
Generate a THIRDPARTY file with all licenses in a cargo project.

cargo-bundle-licenses Bundle all third-party licenses into a single file. NOTE This tools is not a lawyer and no guarantee of correctness can be made

Seth 33 Sep 27, 2021
Generate alerts for when metrics/recordings become absent

prometheus-absent-data-alert-rule-generator prometheus-absent-data-alert-rule-generator is a tool to generate alerts for missing data in time-series t

Stile Education 3 Oct 21, 2021
Used to generate and compare bounded timestamps.

ClockBound Summary: ClockBound allows you to generate and compare bounded timestamps that include accumulated error as reported from the local chronyd

Amazon Web Services 111 Nov 26, 2021
Utilities and tools based around Amazon S3 to provide convenience APIs in a CLI

s3-utils Utilities and tools based around Amazon S3 to provide convenience APIs in a CLI. This tool contains a small set of command line utilities for

Isaac Whitfield 37 Nov 14, 2021
A DIY, IMU-based skateboard activity tracker

tracksb A DIY, IMU-based skateboard activity tracker. The idea is to come up with algorithms to track activity during skateboarding sessions. A compan

null 16 Sep 19, 2021
A tiling window manager for Windows 10 based on binary space partitioning

yatta BSP Tiling Window Manager for Windows 10 Getting Started This project is still heavily under development and there are no prebuilt binaries avai

Jade 141 Nov 18, 2021
A high level diffing library for rust based on diffs

Similar: A Diffing Library Similar is a dependency free crate for Rust that implements different diffing algorithms and high level interfaces for it.

Armin Ronacher 456 Nov 24, 2021
A low-ish level tool for easily writing and hosting WASM based plugins.

A low-ish level tool for easily writing and hosting WASM based plugins. The goal of wasm_plugin is to make communicating across the host-plugin bounda

Alec Deason 56 Nov 14, 2021
wasm actor system based on lunatic

Wactor WASM actor system based on lunatic. Actors run on isolated green threads. They cannot share memory, and communicate only through input and outp

Noah Corona 23 Sep 9, 2021
a hobby OS for x86_64 based on MikanOS.

a hobby OS for x86_64 based on MikanOS.

algon 17 Jul 2, 2021
Nannou/Rust tutorial based on Schotter by Georg Nees

Schotter (German for gravel) is a piece by computer art pioneer Georg Nees. It consists of a grid of squares 12 across and 22 down with random rotation and displacement that increases towards the bottom.

null 35 Nov 22, 2021
Debug2 is a pretty printing crate based on std::fmt

debug2 is a pretty printing crate based on std::fmt Why not just use Debug The Debug trait is good, but the problem is it is not very good at n

Nixon Enraght-Moony 18 Nov 14, 2021
🦀 Rust-based implementation of a Snowflake Generator which communicates using gRPC

Clawflake Clawflake is a Rust application which implements Twitter Snowflakes and communicates using gRPC. Snowflake ID numbers are 63 bits integers s

n1c00o 5 Sep 5, 2021
simple epoch-based reclamation

ebr a simple epoch-based reclamation (EBR) library with low cacheline ping-pong. use ebr::Ebr; let mut ebr: Ebr<Box<u64>> = Ebr::default(); let mut

Tyler Neely 12 Oct 30, 2021
Another Async IO Framework based on io_uring

kbio, the Async IO Framework based on io_uring, is used in KuiBaDB to implement async io. Features Support multi-threading concurrent task submission.

KuiBaDB 40 Nov 5, 2021
Easy to use Rust i18n library based on code generation

rosetta-i18n rosetta-i18n is an easy-to-use and opinionated Rust internationalization (i18n) library powered by code generation. rosetta_i18n::include

null 31 Oct 29, 2021
Gossip-based cluster membership discovery (SWIM)

Foca: Cluster membership discovery on your terms Foca is a building block for your gossip-based cluster discovery. It's a small no_std + alloc crate t

null 6 Nov 19, 2021