E
E
Evgeny572020-06-04 20:20:48
PHP
Evgeny57, 2020-06-04 20:20:48

Is it possible to parse to php through ssh tunnel?

How is parsing implemented through the ssh tunnel
Is it possible to send post requests, and in what form does the response come

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2020-06-05
@FanatPHP

Well, since I was asked as an expert, I will answer.

You don't need to parse anything.

We must not steal someone else's, but do our own.
Well, you open your parsing through ssh, as a result, the site will insert a captcha.
It's a bummer for you anyway, but you will spoil millions of people who will have to enter captcha.
And you can’t find anything on the Internet either - captcha is everywhere. And you don't get discouraged.

N
Nadim Zakirov, 2020-06-05
@zkrvndm

You can use file_get_contents() to parse https sites. At the same time, this function quite calmly allows you to transfer any headers from User -Agent and Cookie to the POST parameters you need so much when requesting. You can easily imitate the browser you need and bypass some simple protections.
POST request, instruction.
The response comes in the form of a normal html code of the page, which can be written to a variable and processed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question