Web scrapper
-
scrapping from website (https://www.learncbse.in/general-knowledge-for-kids/)
-
execution
$ npm install --save-dev nodemon
$ npm install
$ npm run pup
- options
$ npm run pup
$ npm run rp
- output
[
'1. How many days do we have in a week?',
'2. How many days are there in a year?',
'3. How many colors are there in a rainbow?',
'4. Which animal is known as the ‘Ship of the Desert?’',
'5. How many letters are there in the English alphabet?',
'6. How many consonants are there in the English alphabet?',
'7. How many sides are there in a triangle?',
'8. In which direction does the sun rise?',
'9. What do you call a type of shape that has five sides?',
'10. Which month of the year has the least number of days?'
] [
'Answer: Seven',
'Answer: 365 (not a leap year)',
'Answer: 7',
'Answer: Camel',
'Answer: 26',
'Answer: 21',
'Answer: Three',
'Answer: East',
'Answer: Pentagon',
'Answer: February'
]
- reference