-
Notifications
You must be signed in to change notification settings - Fork 74
examples with nested classes, e.g. microformats2 #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 |
Yes, |
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. |
Thanks for your reply, Erik. And many thanks for such a cool piece of software! :) |
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.
The text was updated successfully, but these errors were encountered: