UNPKG
bob-the-miner
Version:
latest (2.0.0)
2.0.0
0.0.1
Bob is a web miner
github.com/raoul2000/bob-the-miner
raoul2000/bob-the-miner
bob-the-miner
/
examples
/
nyt-headline.js
12 lines
(9 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
"use strict"
;
const
bob =
require
(
"../index"
); bob.
work
(
"https://www.nytimes.com/"
, [
"section.story-wrapper > a > div > div"
]) .
then
(
(
result
) =>
{
console
.
log
(
JSON
.
stringify
(result,
null
,
4
)); }) .
catch
(
(
err
) =>
{
console
.
error
(err); });