eklem / browsercrawler

Crawling content from a site within the browser. A basis for i.e. a search solution for static sites.
https://eklem.github.io/browsercrawler/doc/
MIT License
2 stars 0 forks source link

How to transfer crawled stuff from the promise #21

Closed eklem closed 6 years ago

eklem commented 6 years ago

In bundle.js, the function needs to call a function in the regular javascript, for what ever you are building. Now it calls search-index directly, but what if the user is using another search engine, or not a search engine at all?

Could make an intermediate step and let it call a whatNow(items)-function and that again can call the preferred function for the data crawled.

eklem commented 6 years ago

called crawlHook