Comments (5)
Thanks for your reply, Erik. And many thanks for such a cool piece of software! :)
from fathom.
cc: @mixedpuppy who may have some suggestions for how to do this in Firefox in particular
from fathom.
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.
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.
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)
- Remove the need to look at Tensorboard for LR HOT 1
- Higher-rez histograms
- `fathom-init`-like tool
- Support CUDA in trainer HOT 1
- Handle whitespace in base64 strings in fathom extract
- Try using window loading events to trigger vectorization instead of `tabs.onUpdated` HOT 1
- Duplicate feature vectors for samples appearing in vector file
- Make Fathom see into iframes HOT 1
- Configuring Vectorizer...Error: Couldn't find trainee ID "TRAINEE" in your rulesets. HOT 11
- Travis CI free usage ends Dec 3; mozilla repos should switch to other CI platforms HOT 1
- Dev tools panel sometimes doesn't draw all its widgets HOT 1
- Evaluate SingleFile as alternative serializer
- Have an Outreachy intern
- Make isVisible 10% faster by avoiding unneeded getComputedStyle() calls HOT 2
- FathomFox doesnโt see elements that are in the iframe
- geckodriver code 64 HOT 2
- Can't find firefox binary
- Check ancestors overflow style instead of descendant's overflow style in IsVisible()
- fathom train fails: 'WebDriver' object has no attribute 'find_element_by_id' HOT 3
- `isVisible` returns `false` for elements scrolled off the top of the screen
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fathom.