scrapeghost icon indicating copy to clipboard operation
scrapeghost copied to clipboard

Autoscraper memoization?

Open aparatext opened this issue 2 years ago • 0 comments

Related to #7.

LLMs are seemingly happy to even take raw text and extract the structure out of it, even better than the needlessly HTML, not to mention cheaper.

Packages like autoscraper can take a web page with known structured data and build a model of what selectors most likely yielded that text.

So perhaps the proposed hybrid mode can be implemented not through the LLM generating code from a HTML, but by first using it to extract the raw unformatted data and then writing small lambdas to normalize it to your expected format.

aparatext avatar Dec 14 '23 20:12 aparatext