Giter VIP home page Giter VIP logo

Comments (5)

 avatar commented on June 18, 2024 1

Thanks for your reply, Erik. And many thanks for such a cool piece of software! :)

from fathom.

tantek avatar tantek commented on June 18, 2024

cc: @mixedpuppy who may have some suggestions for how to do this in Firefox in particular

from fathom.

erikrose avatar erikrose commented on June 18, 2024

Absolutely. For simple cases, you could just use CSS selectors, like...

const rules = ruleset(
    rule(dom('.h-entry .p-name'), type('title').note(fnode => fnode.element.textContent))
);

Soon I plan to add contains() and matching() to the left-hand side of rules that will make it easier to express typed containment (a "foo"-typed node within a "title"-typed node) and arbitrary predicates.

from fathom.

 avatar commented on June 18, 2024

Yes, contains() and matching() would be a very powerful addition indeed. Do you think you could maybe roughly outline how would you approach the implementation of those? I take you will probably not add any new features anymore given the project is not very active?

from fathom.

erikrose avatar erikrose commented on June 18, 2024

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.

from fathom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.