summaryrefslogblamecommitdiff
path: root/examples/useragents/firefox.js
blob: 20d4d3cbb2ffc820e95f0b4f73020f21f45f45d7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                         
import { parse } from "flyscrape";

export const config = {
  url: "https://www.mozilla.org/en-US/firefox/releases/",
};

export default function ({ doc, absoluteURL }) {
  const links = doc.find(".c-release-list a");
  return links
    .map(link => link.text())
    .filter(Boolean)
    .filter(version => parseFloat(version) >= 60);
}