We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea5b65f commit 779c115Copy full SHA for 779c115
2 files changed
src/extractors/custom/www.sanwa.co.jp/index.js
@@ -7,7 +7,11 @@ export const WwwSanwaCoJpExtractor = {
7
8
author: null,
9
10
- date_published: null,
+ date_published: {
11
+ selectors: ['p.date'],
12
+ format: 'YYYY.MM.DD',
13
+ timezone: 'Asia/Tokyo',
14
+ },
15
16
dek: {
17
selectors: [['meta[name="og:description"]', 'value']],
src/extractors/custom/www.sanwa.co.jp/index.test.js
@@ -58,7 +58,7 @@ describe('WwwSanwaCoJpExtractor', () => {
58
59
// Update these values with the expected values from
60
// the article.
61
- assert.equal(date_published, null);
+ assert.equal(date_published, '2019-03-07T15:00:00.000Z');
62
});
63
64
it('returns the dek', async () => {
0 commit comments