Sunday, 30 April 2017

Intercept response data from HTML in node

I would like to build node app that can automtic fetch and store some data from google search engine. I would like to intercept xhr response from it (like in chrome dev tools / network).

Now i can only intercept request for https://www.google.pl/search?q=warsaw, but i can't intercept this https://www.google.pl/search?sclient=psy-ab&biw=1149&bih=257&q=warsaw&oq=warsaw&gs_l=serp.3..0l2j0i67k1j0.3138662.3139515.1.3143895.6.5.0.1.1.0.215.894.0j4j1.5.0....0...1c.1.64.psy-ab..0.6.868...35i39k1j0i131k1.QXioBJZEpqM&pbx=1&bav=on.2,or.r_cp.&fp=351283b146f4ca25&tch=1&ech=1&psi=mQwGWY3yBaqC6ATXqqDwBw.1493568659150.6

Is any way to intercept this "internal" request ? I tried request and request-debug npm's, but they only see the first request to google. I suspect, that I need to render html that i got, but I'm not sure.



via Andrzej Sala

No comments:

Post a Comment