diff options
Diffstat (limited to 'examples/useragents/edge.js')
| -rw-r--r-- | examples/useragents/edge.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/useragents/edge.js b/examples/useragents/edge.js new file mode 100644 index 0000000..1e76131 --- /dev/null +++ b/examples/useragents/edge.js @@ -0,0 +1,12 @@ +import { parse } from "flyscrape"; + +export const config = { + url: "https://learn.microsoft.com/en-us/deployedge/microsoft-edge-release-schedule", +}; + +export default function ({ doc, absoluteURL }) { + const links = doc.find("table a"); + return links + .map(link => link.text()) + .filter(Boolean) +} |