How To get all Firefox Desktop SUMO KB Articles using pup WITHOUT using grep by using 'attr{href}'
Pontifications
- How To get all Firefox Desktop SUMO KB Articles using pup (disclaimer this could break at any time :-)
- Get the web page using
curl
- Parse the HTML :-) and find the links using
pup
curl "https://support.mozilla.org/en-US/contributors/kb-overview?product=firefox" |\
pup '#kb-overview-table tbody tr td:nth-child(1) a[href*="/en-US/kb/"]\
attr{href}' > all_relative_desktop_urls.html
See the earlier, grep version: How To get all Firefox Desktop SUMO KB Articles using pup