Skip to content

Instantly share code, notes, and snippets.

View baranbbr's full-sized avatar

Baran baranbbr

  • 18:10 (UTC +01:00)
View GitHub Profile
@baranbbr
baranbbr / get_transcript.py
Created January 13, 2022 23:34
Creates a Firefox browser instance and saves the transcript of the YT video
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from bs4 import BeautifulSoup
@baranbbr
baranbbr / custom-notion-url.js
Created January 9, 2022 21:48
Script to use on Cloudflare for custom Notion URLs
/* CONFIGURATION STARTS HERE */
/* Step 1: enter your domain name like fruitionsite.com */
const MY_DOMAIN = "fruitionsite.com"
/*
* Step 2: enter your URL slug to page ID mapping
* The key on the left is the slug (without the slash)
* The value on the right is the Notion page ID
*/