Skip to content

Instantly share code, notes, and snippets.

@hanlee55
hanlee55 / notion2blog.js
Created January 8, 2023 07:01 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
# youtube comment id: UgzH8a3-cNYt4ilzqpp4AaABAg.9h-vfqZ-lFE9h015F30PrU
# video: https://youtu.be/f1hXQ4Bv-j0
from flask import Flask, jsonify, request
import sys, json, datetime
application = Flask(__name__)
def example (date):
answer = date.strftime('%Y-%m-%d')
return answer