Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

web scraping using javascript

// For JavaScript running in the NodeJS environment:

const puppeteer = require('puppeteer');
 
(async () => {
  const browser = await puppeteer.launch( { headless: false } )
  const page = await browser.newPage()
  await page.goto("https://bbc.com")
 
  const data = await page.evaluate(() => {
  // Enter JavaScript to run on the page here!
  })
})()
Source by openjavascript.info #
 
PREVIOUS NEXT
Tagged: #web #scraping #javascript
ADD COMMENT
Topic
Name
3+1 =