H
H
hrvasiliy2014-10-03 12:20:29
PHP
hrvasiliy, 2014-10-03 12:20:29

How to create a permanent connection?

I explain that the donor site has information that is updated every 5 seconds, this information needs to be parsed. But if I connect to the site every 5 seconds, you understand, they will be banned after 5 minutes. So, how to keep the parser constantly connected to this page and pull the information immediately after it is updated and manipulate it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2014-10-03
@hrvasiliy

1) You can resolve the connection yourself, since php allows you to write http clients. Google for keep-alive. But the option is dubious.
2) do not bathe and bomb the server with requests, having bought proxies. Simple and reliable.

D
Dmitry, 2014-10-03
@CTAKAH4uK

WebSocket, but if there is no access to the donor site - no way.

P
Pavel, 2014-10-09
@tdstdk

When the ethical side of the issue, no one even mentioned. It's so normal now, is it okay? Hmm..
If everything is legal, isn't it easier to negotiate with the site owner and use his api?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question