repl.it
@jajoosam/

quote-scraper-1

Express

Quotes scraped in just a few lines of js!

fork
loading
Files
  • index.js
  • quote.pug
  • Packager files
  • package-lock.json
  • package.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const express = require('express');
const app = express();

app.use(express.static('public'));
app.set('view engine', 'pug');
app.set('views', __dirname);

app.get('/', (req, res) => {

res.send(`hey`)

});
	x('https://genius.com/Dababy-intro-lyrics',
	{ 
		data: `.lyrics`
	}
	)(function(err, result){
    let data = result.data);
		console.log(data)
	});
app.listen(3000, () => console.log('server started'));