Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading from stdin #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ernstki
Copy link

@ernstki ernstki commented Nov 12, 2023

Thanks for releasing this out into the world. Works as advertised, no muss, no fuss.

"Give me the first column from an HTML table" seems like a thing that lots of people would want to do. I'm surprised at the apparent dearth of tools for that task. Maybe the world moved to XML, and then JSON, and I missed the moment. Surprised that pup, xidel, htmlq, or one of those didn't already do this—at least not in a straightforward manner.

I know you put some effort into loading the URL using the Ruby facilities for that, but I was already using curl to handle authentication to an internal site, and so reading from standard input seemed like the appropriate, Unixy thing to do.

Nowadays, even Windows has a curl, which is probably just a wrapper around some PowerShell Get-URL or whatever like that.

@ernstki
Copy link
Author

ernstki commented Nov 12, 2023

Does need a bit of work to support colspans and rowspans, though, in order to fit my particular use case. And that's a tough problem would take a bit of effort to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant