Live data from Hacker News

Show HN: Robust LLM extractor for websites in TypeScript

github.com

61–63 of 63 posts

Re: Show HN: Robust LLM extractor for websites in TypeScript

#61

Hey, 1 question, does it extract interactive data too? I mean data that is visible after interaction, like the collapse bar and others?

You can use a browser automation library for rendering JS + interaction (like click collapse button) and then use this library to extract the HTML after interaction. Here is an example of using a AI browser automation library with prompt to interact (but you can also use playwright if you know the exact element to interact)

https://github.com/lightfeed/extractor?tab=readme-ov-file#us...

Re: Show HN: Robust LLM extractor for websites in TypeScript

#63
post #43

Earlier quoted context omitted.

You will absolutely struggle to get all the info you need into 700 tokens per page. Edit: There's also the added complexity of running a browser against 1M pages, or more.

I agree that When pages have similar structure, for one time extraction as it is (not reasoning from context), scraping with selectors is the way to go. This library also supports HTML as input so running a browser is not required.

Came back here to say I was wrong! I have been experimenting, and it is doable. I have been experimenting with setting up a scraping pipeline with LLM enrichment since I wrote the comment above, and have very positive results so far. :)
Post reply on HN