mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-17 03:25:31 +00:00
cleanup
This commit is contained in:
parent
86b2ee194c
commit
3128baeda1
@ -4,13 +4,10 @@ import Resource from './resource'
|
|||||||
import GenericExtractor from './extractor/generic'
|
import GenericExtractor from './extractor/generic'
|
||||||
|
|
||||||
import fetchResource from './resource/utils/fetch-resource'
|
import fetchResource from './resource/utils/fetch-resource'
|
||||||
// export default fetchResource
|
|
||||||
|
|
||||||
// export { default as GenericExtractor } from './extractor/generic/index.js'
|
|
||||||
|
|
||||||
const Iris = {
|
const Iris = {
|
||||||
parse: async function(url) {
|
parse: async function(url, html) {
|
||||||
const $ = await Resource.create(url)
|
const $ = await Resource.create(url, html)
|
||||||
const result = GenericExtractor.parse(url, null, $)
|
const result = GenericExtractor.parse(url, null, $)
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user