Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to scrape a website with javascript

const http = require('http');

const req = http.request('http://example.com', res => {
	const data = [];

	res.on('data', _ => data.push(_))
	res.on('end', () => console.log(data.join()))
});

req.end();
Source by www.scrapingbee.com #
 
PREVIOUS NEXT
Tagged: #scrape #website #javascript
ADD COMMENT
Topic
Name
9+8 =