This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Parameters: | |
type - (Required) album / track / playlist / artist | |
id - (Required) Target ID | |
width - (Optional) width | |
height - (Optional) height | |
--> | |
{{ if .IsNamedParams }} | |
<iframe src="https://open.spotify.com/embed/{{ .Get "type" }}/{{ .Get "id" }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import puppeteer from "puppeteer"; | |
import fs from "fs"; | |
import { execSync } from "child_process"; | |
const folder = process.argv[2]; // This array contains command line args passed to node | |
// First entry is node path, second is script path, thrid onwards are the args passed. | |
const URL = `https://egghead.io/courses/${folder}`; | |
async function main() { | |
const browser = await puppeteer.launch({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import path from "path"; | |
import puppeteer from "puppeteer"; | |
async function main() { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto( | |
"https://www.reddit.com/r/underlords/comments/mlb93c/6_4_2021_meta_builds_tier_list_by_dani/", | |
{ waitUntil: "networkidle0" } | |
); |