Lurker News

Comments (127) 31 threads

Show all comments

Showing thread 28 of 31

ricardo814 replies#
Nice, but it's essentially scraping? Scraping is brittle.

Some design changes and the whole thing breaks. Maintenance nightmare.

ricardo811 reply#
Not sure for the downvote reason. Like I say scraping is brittle. I've done hundreds of scraping projects in the past. A recent one was taking 50 shopping sites looking for what products they covered. Safe to say you look at it a month later and the XPaths/CSS selectors/whatever scraping method you used has changed.

This is why APIs exist.

Vinnl2 replies#
Ideally sites would just publish RSS feeds themselves, but not all of them do — let alone an API…
ricardo812 replies#
Indeed, but the scraping workaround is brittle. We could make rules for all sites on the web that don't have a feed or API but it's not all that manageable.

It also begs the question of why they don't make their content that way, perhaps it was by choice. Especially if you use this kind of tool to syndicate things.
Not quite sure of the novelty of this one given that people have scraped things for decades.
There's probably a wiki endpoint for their example, maybe, maybe not. A lot of wiki's stuff is free to download and they have extensive endpoints for acquiring data.

Continue this thread — 2 replies

ricardo812 replies#
I can't reply to the other subcomments because of the downvotes.

Just to be clear, I'm not against scraping. Done it myself plenty, point was that it's hard to maintain and if I were to make a tool for the masses, it'd be in a UI that highlights elements and lets you select them rather than dig around the DOM. Pretty sure things like this have existed for 10 years +

Continue this thread — 2 replies

bscphil1 reply#
I'm not sure I understand the criticism. What exactly is supposed to be the alternative? It's not like this is supposed to be used for high-availability purposes or stock trading or something. It scratches a particular itch for a handful of end users who just want to get all their news in their feed reader. It's expected that they'll maintain their own scraper parameters.
ricardo811 reply#
Pick a number of programming languages and you can scrape a page in 10-20 lines of code in many cases. The barrier to entry is understanding the DOM layout for a particular website, which is subject to change at any moment.

Purely IMO, a more friendly way to go about it to abstract from code and CSS knowledge is to run a UI that highlights elements, lets you select them, select the title, description, link etc and there you go. Same thing but without the knowledge of DOM/XPath/selectors.

cromka2 replies#
> highlights elements, lets you select them,

And how would that software then remember your chosen elements if not by their CSS ids/classes?

Continue this thread — 2 replies

kortilla1 reply#
Website doesn’t offer API. So we must scrape. This is a tool for that paradigm.

Your comment is “scraping is brittle”, which is not helpful. Everyone knows scraping sucks. It’s why these tools are being made to make it less unpleasant.

ricardo811 reply#
It's not even that 'scraping sucks', that's just a stigma to the word. The point is that it's not stable and having to have DOM knowledge to select the paths is less inclusive.
moehm7 replies#
> having to have DOM knowledge to select the paths is less inclusive

Right click on the element in Firefox, click "inspect element" and it shows you the unique selector for that element.

Continue this thread — 7 replies

lhnz1 reply#
If you scrape using accessible parts of the page (e.g. `aria-` attributes) it is less likely to be brittle, since if it were it would mean their site had stopped being accessible to screen readers, etc.
KirillPanov1 reply#
Why the downvotes here? This is objectively true and, in my experience, very very useful.

Screen readers are scrapers too. "Scraper" does not mean "user agent I don't like".

DoreenMichele1 reply#
Is there someplace I can read more about this idea? Any aspect of it. I'm one of the less technically literate members of HN, but I'm a co-owner of a blind dev group.

Please and thank you.

Continue this thread — 1 reply