Ask HN: what could go wrong?
I'm building a website that lets people aggregate the numbers they care about into one spot.
Right now, the group that it is most popular with is authors, who use it to get alerts when they get a new review on Amazon.
They have suggested that I make it possible to track their author rank on Amazon. I've been playing with that and I have found that regex is a nice way to go for that particular job. (I've been using xpaths and selectors up to this point.) So soon I'll probably add that as a specialized function to my website.
Because regexes are so useful (not for parsing but for finding known patterns), I'm tempted to make it possible to create automatic scrapers using regexes. But it seems the kind of thing you want to research a bit first.
5 comments
[ 2.7 ms ] story [ 18.5 ms ] thread"Normal" regular expressions are probably fine. Only with back-tracing or look-forward it might be possible to create complexity so a regex takes too long. Wrapping it into a block with fixed timeout should work.
import.io looks awesome. I was also looking at ParseHub, which seems very impressive.
Thanks for the idea of a fixed timeout.
https://github.com/andrewberls/regularity