Live data from Hacker News

Ask HN: What are you using headless Chrome for?

news.ycombinator.com

11–20 of 23 posts

Re: Ask HN: What are you using headless Chrome for?

#12

I use it to get rendered web pages I want to scrap.

I was doing the same for an article reader / archiver I built but it was slow. Did you ever figure out how to speed it up? Cancelling image and media requests helped but it increased the likelihood of being flagged as a bot.

Re: Ask HN: What are you using headless Chrome for?

#13
post #12

I use it to get rendered web pages I want to scrap.

I was doing the same for an article reader / archiver I built but it was slow. Did you ever figure out how to speed it up? Cancelling image and media requests helped but it increased the likelihood of being flagged as a bot.

Sorry I never looked at the perf aspect of it since my needs were modest (less than 50 web pages per day). The first thing that would come to my mind is to parallelize it but then it's going to become pretty complex.

Re: Ask HN: What are you using headless Chrome for?

#20
post #5

I use it to test my Content-Security-Policy by crawling my whole site and capturing any violation reports that are sent.

What's wrong with just plain old curl?

cURL doesn't load subresources or honour Content-Security-Policy headers as this is beyond the scope of what it's supposed to do.
Post reply on HN