Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
examples with nested classes, e.g. microformats2 #42
Just saw the lightning talk at #MozAloha - very cool!
Is it possible to write Fathom rules to detect nested class names? Perhaps even with additional CSS Selector constraints?
Would it be possible to add a simple example rule set for parsing data from nested elements with particular class names?
For example, I'd like to write rules like the nested class name rules for microformats2 parsing:
Or at least rules like:
Happy to help get something simple working and iterate from there.
Absolutely. For simple cases, you could just use CSS selectors, like...
Soon I plan to add
Probably just the naive way to begin with, then optimizing as the need proves itself. Most of the dev work is happening in https://github.com/erikrose/fathom-fox/ at the moment: integrating Fathom development tools into Firefox so we can write rulesets faster and more easily. Then I have some crazy ideas for Fathom 3, which will bring contains, matching, and, indeed, arbitrary predicates.