This commit is contained in:
Adam Pash 2016-09-07 11:01:02 -04:00
parent 86b2ee194c
commit 3128baeda1

View File

@ -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
}