code: def opengraph_get(html, prop):
      
      match = re.search('<meta [^>]*property="og:' + prop + '" content="([^"]*)"', html)
      if match is None:
          match = re.search('<meta [^>]*content="([^"]*)" property="og:' + prop + '"', html)
          if match is None:
              return None
      return match.group(1)
docs: Extract specified OpenGraph property from html.
  
          >>> opengraph_get('<html><head><meta property="og:image" content="http://example.com/img.jpg"><meta ...', "image")
          'http://example.com/img.jpg'
          >>> opengraph_get('<html><head><meta content="http://example.com/img2.jpg" property="og:image"><meta ...', "image")
          'http://example.com/img2.jpg'
          >>> opengraph_get('<html><head><meta name="og:image" property="og:image" content="http://example.com/img3.jpg"><meta ...', "image")
          'http://example.com/img3.jpg'