H
H
hrvasiliy2015-02-17 14:52:27
PHP
hrvasiliy, 2015-02-17 14:52:27

How to track requests correctly?

I'm trying to parse a page where some of the content I need is generated by JS. I decided to try to track the request and get a response and parse it, that is, parse not the page, but the response of the request. On one site, a news site, I found everything without problems, but on others I can’t. Actually the question is: how to track and get a response from the request?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2015-02-17
@FanatPHP

ask humanly is not destiny? is it necessary to parse with frills? nobody heard about RSS in the 21st century?

H
He11ion, 2015-02-17
@He11ion

"Track request" - wtf? You can get the page, but it will not work if the content is loaded using JS. You need a browser emulator using server tools (phantomjs/BrowserExt/google it) or an RSS feed/REST api built into the target site to upload data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question