-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add published and modified dates Signed-off-by: Stiliyan Ivanov <[email protected]> * Fix tests Signed-off-by: Stiliyan Ivanov <[email protected]> * Fix more tests Signed-off-by: Stiliyan Ivanov <[email protected]> * Merge code Signed-off-by: Stiliyan Ivanov <[email protected]> * Fxi modified date Signed-off-by: Stiliyan Ivanov <[email protected]> * New line Signed-off-by: Stiliyan Ivanov <[email protected]> * Wee need concat rules Signed-off-by: Stiliyan Ivanov <[email protected]> * Closer to old behaviour of date Signed-off-by: Stiliyan Ivanov <[email protected]> * YouTube does not seem to use <meta date> Signed-off-by: Stiliyan Ivanov <[email protected]> * Add date docs Signed-off-by: Stiliyan Ivanov <[email protected]> * Update README.md * test: don't modify previous fixtures * test: update snapshot The rule: ``` toDate($ => $filter($, $('[class*="publish" i]'))) ``` is taking more priority than: ``` toDate($ => $('[property*="dc:date" i]').attr('content')) ``` It's okay for this case since it's a fuzzy rule so isn't too deterministic * test: update snapshot The rule ``` toDate($ => $('[itemprop="datepublished" i]').attr('content')) ``` It's taking more priority than: ``` toDate($ => $('meta[name="date" i]').attr('content') ``` It's okay for this case since it's a fuzzy rule so isn't too deterministic * test: update snapshot --------- Signed-off-by: Stiliyan Ivanov <[email protected]> Co-authored-by: Kiko Beats <[email protected]>
- Loading branch information
Showing
23 changed files
with
74 additions
and
29 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
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
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
Binary file not shown.
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
Binary file modified
BIN
+3 Bytes
(100%)
packages/metascraper/test/integration/cio/snapshots/index.js.snap
Binary file not shown.
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
Binary file modified
BIN
-2 Bytes
(100%)
packages/metascraper/test/integration/cloud-pro/snapshots/index.js.snap
Binary file not shown.
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
Binary file modified
BIN
+2 Bytes
(100%)
packages/metascraper/test/integration/computerworld/snapshots/index.js.snap
Binary file not shown.
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
Binary file modified
BIN
-1 Byte
(100%)
packages/metascraper/test/integration/entrepreneur/snapshots/index.js.snap
Binary file not shown.
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
Binary file modified
BIN
+0 Bytes
(100%)
packages/metascraper/test/integration/fast-company/snapshots/index.js.snap
Binary file not shown.
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
Binary file modified
BIN
-4 Bytes
(99%)
packages/metascraper/test/integration/lean-data/snapshots/index.js.snap
Binary file not shown.
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
Binary file modified
BIN
+3 Bytes
(100%)
packages/metascraper/test/integration/los-angeles-times/snapshots/index.js.snap
Binary file not shown.
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
Binary file modified
BIN
-1 Byte
(100%)
packages/metascraper/test/integration/silicon-beat/snapshots/index.js.snap
Binary file not shown.
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
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
Binary file modified
BIN
-32 Bytes
(95%)
packages/metascraper/test/integration/venture-beat/snapshots/index.js.snap
Binary file not shown.