Skip to content

huangc28/get_og_by_link

 
 

Repository files navigation

get_og_by_link

##Functions:

  • Get meta og content by a link
  • Get the first image by a link

##Process:

  • Get a link
  • Test link test (test for only php)
  • Main code
  1. test_link: test link die or not

  2. parser_link: parser link by meta

  3. Test: use print_r to display og_infos and og_imgs

##For exmaple:

  • Get the og information from tw.yahoo.com

$ get_content.php?link=tw.yahoo.com

About

get og content by a link

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.6%
  • JavaScript 0.4%