Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add netease extractor #684

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion dist/mercury.js
Original file line number Diff line number Diff line change
Expand Up @@ -6139,6 +6139,35 @@ var SpektrumExtractor = {
}
};

var Www163ComExtractor = {
domain: 'www.163.com',
title: {
selectors: [['meta[property="og:title"]', 'content'], '.post_title']
},
author: {
selectors: [['meta[name="author"]', 'content'], ['meta[property="article:author"]', 'content'], '.post_author']
},
date_published: {
selectors: [['meta[property="article:published_time"]', 'content']]
},
dek: {
selectors: []
},
lead_image_url: {
selectors: ['p.f_center img']
},
content: {
selectors: ['.post_body'],
// Is there anything in the content you selected that needs transformed
// before it's consumable content? E.g., unusual lazy loaded images
transforms: {},
// Is there anything that is in the result that shouldn't be?
// The clean selectors will remove anything that matches from
// the result
clean: []
}
};



var CustomExtractors = /*#__PURE__*/Object.freeze({
Expand Down Expand Up @@ -6285,7 +6314,8 @@ var CustomExtractors = /*#__PURE__*/Object.freeze({
WwwEngadgetComExtractor: WwwEngadgetComExtractor,
ArstechnicaComExtractor: ArstechnicaComExtractor,
WwwNdtvComExtractor: WwwNdtvComExtractor,
SpektrumExtractor: SpektrumExtractor
SpektrumExtractor: SpektrumExtractor,
Www163ComExtractor: Www163ComExtractor
});

var Extractors = _Object$keys(CustomExtractors).reduce(function (acc, key) {
Expand Down
Loading