Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you scrape a Angular JS website [closed]

Tags:

angularjs

This was marked off-topic but left on Stack Overflow in case someone else has this same question.

This may be out of scope but I was curious to know if you could scrape a Angular JS website?

If you can can someone point me to some good resources? I did some R & D but could not find any useful resources besides Phantom JS

like image 861
breezy Avatar asked Aug 20 '15 17:08

breezy


1 Answers

The simplest answer to this question is yes, it is possible, but not using traditional bots that only look at the raw textual content that they'd get in the HTTP response body and don't really interpret what a typical browser running JavaScript would see. Google does it (as of May 2014): http://googlewebmastercentral.blogspot.com/2014/05/understanding-web-pages-better.html

If you have a bot that parses javascript and allows the normal http xhr requests to go out and get the actual data that populates a SPA, you can scrape an Angular site.

like image 103
wesww Avatar answered Oct 21 '22 10:10

wesww