getting meta tags info using curl and get_meta_tags()

前端 未结 2 558
别跟我提以往
别跟我提以往 2021-01-27 11:11

is there a way to use curl such that you can do something that is equivalent to the get_meta_tags() function in php? specifically to get the meta tags of an external site using

2条回答
  •  萌比男神i
    2021-01-27 11:43

    is there a way to use curl such that you can do something that is equivalent to the get_meta_tags() function in php

    Nope, I don't think so.

    The best way would be to fetch the data, and parse it using a HTML parser. Alternatively, there are several regex based approaches in the user contributed notes in the manual.

提交回复
热议问题