scrapeghost
scrapeghost copied to clipboard
Autoscraper memoization?
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.