Lurker News

Comments (228) 108 threads

Earlier comments
cholmon#
I recently stumbled across http://go-colly.org/, that looks well thought out and simple to use. It seems like a slimmed down Go version of Scrapy.
elchief2 replies#
Anyone who suggests a tool that can't understand JavaScript doesn't know what they are talking about

You should be using Headless Chrome or Headless Firefox with a library that can control them in a user-friendly manner

bdcravens#
I haven't dug deep recently, but if you need to automate browser download dialog this wasn't possible with Headless Chrome. (I'd love to find out that this has changed, and you can control it as well as you can with Selenium)
sp0rk2 replies#
There are a great many sites that degrade gracefully when JS support is not available. It makes absolutely no sense to waste the resources required to run a full headless browser when simple HTTP requests will retrieve the same information faster, more efficiently, and in a way that's easier to parallelize.
xur171 reply#
A lot of times you can also watch the api calls JS pages (or apps) make and retrieve nice structured json data.

I personally avoid executing js unless it's necessary, as it adds more complexity, and is noticeably more brittle.

jordanpg1 reply#
Using an undocumented API, however, carries significant risk for production operations.

Continue this thread — 1 reply

jordanpg#
Yes, but a great many sites don't, and for those, you need Selenium + browser, full stop.
jmkni2 replies#
I've had a surprising amount of success with the HTML Agility Pack in .net, if you have a decent understanding of HTML it's pretty usable.
inglor#
Try CsQuery, it's much nicer in terms of APIs.
dsschnau#
same. I'm a .NET person and i do web scraping stuff on the side, HTML Agility Pack has been easy to pick up.

Load more comments