3 ms·
You would need to do a bit filtering to get the exact text you need. For example, to get the text for this post you could run: open https://news.ycombinator.co
by portInit 4y ago
You would need to do a bit filtering to get the exact text you need. For example, to get the text for this post you could run:
open https://news.ycombinator.com/item?id=34970917 https://news.ycombinator.com/item?id=34970917
|| filter "(attributes.class == 'toptext')"
|| table innerText
- zerop 4y agoThis requires me to know the HTML structure in advance. I want to do it on any page. Mozilla has readability JS which does it, wanted to know if this tool has the same feature. BTW it's a great tool.
- portInit 4y agoThank you! The query below would get you the full page text, although it likely wont be too legible. I'll read up on readability JS some, it looks quite magic and could possibly be added in. open https://news.ycombinator.com/item?id=34970917 https://news.ycombinator.com/item?id=34970917 || filter "(nodeName == 'BODY')" || table innerText Often you can use crul to discover the html structure in the results table. With a `find "text string"` to filter rows and then a filter on the column values that identify the desired elements.