diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-08-17 20:18:55 +0200 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-08-17 20:18:55 +0200 |
| commit | 8f55226a53682f9f4a0b63778b3338451605a6c3 (patch) | |
| tree | d435e924de369cebbbe66449f2cd82f79b6c0300 /examples/esbuild.github.io.js | |
| parent | 5e2b1d1dc902ba53fc537b31e835d82c0e55dfb6 (diff) | |
add timestamp
Diffstat (limited to 'examples/esbuild.github.io.js')
| -rw-r--r-- | examples/esbuild.github.io.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/examples/esbuild.github.io.js b/examples/esbuild.github.io.js deleted file mode 100644 index 7839791..0000000 --- a/examples/esbuild.github.io.js +++ /dev/null @@ -1,20 +0,0 @@ -import { parse } from "flyscrape"; - -export const options = { - url: "https://esbuild.github.io/plugins/", - depth: 1, - rate: 100, - allowedDomains: [ - "esbuild.github.io", - "nodejs.org", - ], -} - -export default function({ html }) { - const doc = parse(html); - - return { - headline: doc('h1').text().trim(), - body: doc('main > p:nth-of-type(1)').text().trim(), - }; -} |