summaryrefslogblamecommitdiff
path: root/examples/hackernews_manual_follow.js
blob: 16e7bee6395ccac0c70f4850304ea6401553453f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                  
export const config = {
  url: "https://news.ycombinator.com/",
  depth: 2,
  follow: [],
};

export default function({ url, doc, follow }) {
  const next = doc.find(".morelink").attr("href");

  follow(next);

  return { url, next };
}