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 fetchResource from './resource/utils/fetch-resource'
|
||||
// export default fetchResource
|
||||
|
||||
// export { default as GenericExtractor } from './extractor/generic/index.js'
|
||||
|
||||
const Iris = {
|
||||
parse: async function(url) {
|
||||
const $ = await Resource.create(url)
|
||||
parse: async function(url, html) {
|
||||
const $ = await Resource.create(url, html)
|
||||
const result = GenericExtractor.parse(url, null, $)
|
||||
return result
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user