Skip to content

Instantly share code, notes, and snippets.

View sbucklew26's full-sized avatar

Sarah Bucklew sbucklew26

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sbucklew26 on github.
  • I am sarahbucklew (https://keybase.io/sarahbucklew) on keybase.
  • I have a public key whose fingerprint is 903A 390D 84C3 CF33 31EB 6641 C8FF 04BE 49C0 A19C

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am sbucklew26 on github.
* I am sarahbucklew (https://keybase.io/sarahbucklew) on keybase.
* I have a public key whose fingerprint is 903A 390D 84C3 CF33 31EB 6641 C8FF 04BE 49C0 A19C
To claim this, I am signing this object:
@sbucklew26
sbucklew26 / og-php.php
Created December 8, 2016 02:45 — forked from tutweb/og-php.php
Get Open Graph Meta Tag Using PHP
<?php
function fetch_og($url)
{
$data = file_get_contents($url);
$dom = new DomDocument;
@$dom->loadHTML($data);
$xpath = new DOMXPath($dom);
# query metatags dengan prefix og
$metas = $xpath->query('//*/meta[starts-with(@property, \'og:\')]');