Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

if i want to just paste an url, of full page of HN, and extract all comments in a json format. would that tool work?


[...document.querySelectorAll(".commtext").values().map((it) => it.innerText)]

Works in every single web browser. No calls to OpenAI needed, and I'm rusty on Javascript. Make it a bookmarklet, and you don't even need to run a dedicated webpage on your machine for that.


You already know the answer to that. This is just a very helpful interface for arbitrary data conversions, that I thought passers by might like to know about. It’s not an LLM, but it does what some of the examples in the article does, and more.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: