|
A Declarative internet scraping library that aims to supply an extendable set of instruments for constructing complicated typesafe queries and web crawlers. The library works best when used in combination with fp-ts however the runP returns a Promise instead of TaskEither returned by the run operate, this enables for standalone use but nonetheless requires fp-ts as a peer dependency. Shear the place the ultimate argument can be of type Shear. Accepts a css question and returns the primary matching DOM node, like document.querySelector. Accepts a css question and returns all matching DOM nodes like doc.querySelectorAll. A "Shear" extends the ReaderTaskEither sort class so you can simply build your selectors. The library supplies just a few Wood Ranger Power Shears shop to assist with queries across a number of pages. Often it's the case you need to follow relative links on a website the place our connection would have to know the present hostname. The "Shear" offers a mechanism for passing context we simply need to alter the connection implementation. |
|