96 karma · joined Oct 12, 2015 (11y ago) · 33 submissions
comment 3y ago · link · parent
1. Although it has limitations, were you able to try the normalize command? https://www.crul.com/docs/queryconcepts/api-normalization
2. Will need to think about this some more.
3. Although we don't yet handle pdfs, the rest of the flow is one we aiming to accomplish with crul. Other than pdf, the pieces should be there and would love to understand this further
comment 3y ago · link · parent
Open to any perspectives on this.
comment 3y ago · link · parent
open 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.
comment 3y ago · link · parent
comment 3y ago · link · parent
open https://news.ycombinator.com/item?id=34970917 || filter "(attributes.class == 'toptext')" || table innerText
comment 3y ago · link · parent
comment 3y ago · link · parent
Scheduling and Domain Policies were the main features we chose to gate initially as they don't affect core functionality other than performance and deployment.
comment 3y ago · link · parent
Related to the quote, we've seen interest for API data wrangling, where prepackaged data feeds can be cumbersome to edit, or other implementation details become challenging like credential management, domain throttling, scheduling, checkpointing, export, etc.
It's also interesting for webpage data when you need to use a particular page as an index of links to filter and crawl. We've tried to build an abstraction layer around that.
Initially, we were mainly focused on webpages, and wanted to bypass the visuals of the browser and use a headless browser to fulfill network requests, render js, etc. then convert the page to flat table of enriched elements. With the APIs as another data set there is some work for us to do around language.
We're now trying to figure out what workflows are most relevant for crul to optimize around, as well, honestly - we just built what we thought was cool. Some features/workflows will certainly be more straightforward with existing tools and software - especially for a technically savvy user.
comment 3y ago · link · parent
Here's a query that shows an option, but the table command will be far more straightforward.
open https://www.w3schools.com/html/html_tables.asp --dimension || filter "(nodeName == 'TD')" || groupBy boundingClientRect.top || table _group.0.innerText _group.1.innerText _group.2.innerText
comment 3y ago · link · parent
Your provided links are interesting and something for us think about some more. Honestly, I would be quite interested in hearing more about your experiences.
comment 3y ago · link · parent
Crul is a really easy way of populating tools that need data, whether it's just a one time thing for a demo/static data set or a scheduled data feed, so this kind of usage makes sense to us.
comment 3y ago · link · parent
We found that it becomes too easy to break API request limits or spam a website otherwise.
However if you rerun that query it should load pretty instantly due to the caching layers, so the actual querying/filtering of the data part is smoother/faster.
comment 3y ago · link · parent
We've built using a microservice architecture to allow us to scale out the parts that need to scale, mainly the workers, which interact with a queue, although we'll need to move from the parts that are currently nodejs for some perf gains and a smaller footprint. All those microservices are consolidated for the desktop variants.
Network concurrency is mostly throttled by our domain policy manager (named "gonogo" - lol) at 1 req/per outbound domain a sec. It's a little slow for a default, but also configurable and provides a nice guardrail for api request limits, etc. Overall async networking has been quite tricky, esp with retries, etc., and we're still iterating on it. Agreed on the profiling difficulties.
comment 3y ago · link · parent
We've been thinking of ways to make the pronunciation a bit clearer, maybe a mascot or something. Open to ideas!
comment 3y ago · link · parent
Crul sort of operates as a text only browser when interacting with a single page at a time, but when you expand and open up multiple tabs it becomes a little more challenging. We have the concept of domain policies which allow you to control how quickly/slowly you access something. There are also some puppeteer level options that could be relevant, even a headful toggle.
We have not invested too much time into this yet as we focused on getting the core functionality working. We think there are use cases (particularly with APIs) that don't run into this problem, but if it comes up more often we'll come up with some options.
comment 3y ago · link · parent
We have done some preliminary work in some AI or other intelligence for pattern recognition to be able to handle structural changes better, but still have lots of work.
But the expanding and querying concepts also make a lot of sense with APIs, which tend to be a little more stable.
comment 3y ago · link · parent
There's a short writeup of this pattern here: https://www.crul.com/docs/examples/how-to-find-filters
28.
Show HN: Crul – Query Any Webpage or API(crul.com ↗)
241 points · by portInit · 3y ago · 79 comments
29.
Post Manhattan Project FOMO – George Gamow and “Maladia Biologica”(apicaster.wordpress.com ↗)
2 points · by portInit · 6y ago · discuss