Skip to content

Instantly share code, notes, and snippets.

@adhocken
adhocken / index.js
Created July 10, 2022 01:52 — forked from LearnWebCode/index.js
Puppeteer / Node.js Automation & Web Scraping Tutorial from YouTube
// in a new folder be sure to run "npm init -y" and "npm install puppeteer"
const puppeteer = require("puppeteer")
const fs = require("fs/promises")
async function start() {
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.goto("https://learnwebcode.github.io/practice-requests/")
const names = await page.evaluate(() => {
@adhocken
adhocken / phoneAuth.js
Created November 17, 2021 00:58 — forked from nyx-code/phoneAuth.js
This is the code for creating simple phone authentication REST API using Twilio service.
require('dotenv/config')
const express = require('express')
const app = express()
const port = 3000
const client = require('twilio')(process.env.ACCOUNT_SID, process.env.AUTH_TOKEN)
// /login
// - phone number