This repository has been archived by the owner on Dec 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#36: Add more sophisticated Fathom rules.
This commit builds off of PR #38, so that PR should merge before this. Open questions: * How to test interdependent rules, such as 'isNearProductImage' for the product title and product price candidate elements? * The only feature that is pulled out accurately on my test page (an Amazon product page) is the image. What rules can I add/modify to get title and price correct? TODO: * Add rule to remove ancestor elements who have the same 'innerText' value. * Consider adding image rule to see if an image element is the largest image on the page (above the fold). * Add price rule to see if innerText starts with '$'.
- Loading branch information
1 parent
a99d3ba
commit b9a56d7
Showing
2 changed files
with
101 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"hasDivWithPriceClass": 2 | ||
"isNearTopOfPage": 3, | ||
"isSufficientlyLarge": 3, | ||
"hasIdOrClassWithTitleSubstring": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters