What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-06 05:31:02
async reduce javascript
const getNonSemverPatchPRs = async () => { const allOpenPrs = await getAllOpenPRs(); return allOpenPrs.reduce(async (previousPromise, pr) => { const collection = await previousPromise; const allCommits = await getAllCommitsF... Add solution -
Shell/Bash 2021-08-29 09:27:02
setup puppeteer centos7
curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash - yum install nodejs 1 2 3 4 5 6 7 curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash - yum install nodejs Step 2 :- Install Puppeteer In CentOS 7 npm i pupeteer 1 npm... Add solution -
Javascript 2021-08-27 10:34:01
puppeeter
const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://news.ycombinator.com', {waitUntil: 'networkidle2'}); await page.pdf({path: 'hn.pdf'... Add solution -
Javascript 2021-08-26 19:31:02
node.js web scraping
const puppeteer = require('puppeteer') const $ = require('cheerio') (async () => { const browser = await puppeteer.launch() const page = await browser.newPage() await page.goto('https://www.imdb.com/title/tt7126948/?ref_=nv_sr_srsg_0', { waitUntil:... Add solution