Tell me, is there a way to parse a site with authorization through social networks better than the one I came to.

Parse the external part of the site, substitute your authorization, and then using the login data, send them to the desired site and parse the materials, caching with Redis on your side?

Site example: http://www.heroquizz.com

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants of D-side , Visman , Vlad from Moscow , Vladimir Martyanov , Deonis Nov 7 '16 at 17:07 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Of those who put a minus, write the reason at least in the comments. - Timur Musharapov
  • I haven’t yet put it, but I think the cons for asking about malicious code: what you are describing is very similar to a phishing site. Helping you to steal our authorization data would be quite stupid somehow. - VladD

1 answer 1

You can not forge authorization through social. network, because during authorization, for example, through the user's VKontakte, redirects to the site specified in the application settings (to be more precise, to one of the sites from the list of "trusted sites"). VKontakte has a rather confusing authorization scheme , and you will not be able to authorize a user on another site without sending it to him.

If you just want to parse information that is protected by authorization, and if you only need one account for this, then try logging in through a browser, and then copy the received cookies. Well, then just do GET requests to the site, feeding your cURL received cookies. If the site developer is not experienced enough, then this scheme will work.

But in general, for the future: what you are doing is not very correct. Making copies of sites with fake authorization is a sin for which you can get a hand, at least from your hoster. Probably for this reason, and you have instructed cons.