examples with nested classes, e.g. microformats2 #42
|
cc: @mixedpuppy who may have some suggestions for how to do this in Firefox in particular |
|
Absolutely. For simple cases, you could just use CSS selectors, like...
Soon I plan to add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
http://microformats.org/wiki/microformats2-parsing#parse_an_element_for_class_microformats
Or at least rules like:
.h-entry .p-name -> title = textContent
Happy to help get something simple working and iterate from there.