A
A
Alexey Chertok2017-09-29 18:40:58
PHP
Alexey Chertok, 2017-09-29 18:40:58

How to parse information by reference (ala VK)?

Good afternoon.
Interested in such a thing as data parsing when inserting a link using jQuery + PHP. I really like the option as implemented in Vkontakte.
For example, just to do preg_replace of the same YouTube, I know and understand the principle. But how to pull data on the "left" links - I have not even the slightest idea.
Thanks in advance for hints/examples/ready plugins, functions/classes.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maksim Fedorov, 2017-09-29
@BarnyBroken

https://github.com/onassar/PHP-MetaParser
but there are more solutions on JS :)
https://github.com/search?l=JavaScript&o=desc&q=me...

M
Maxim Timofeev, 2017-09-29
@webinar

parse the micro-markup (meta tags) of the page by reference, if I'm not mistaken, this is exactly what social networks do.
https://vk.com/page-58942245_49732522

A
agoronik, 2017-09-30
@agoronik

https://habrahabr.ru/post/69149/ cool thing, helps out very often.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question