Skip to content

Python module to parse Open Graph metadata on web pages

License

Notifications You must be signed in to change notification settings

jibaku/ogpy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://travis-ci.org/jibaku/ogpy.svg?branch=master https://coveralls.io/repos/HenrikOssipoff/python-opengraph/badge.svg?branch=master

Python module to parse Open Graph metadata on web pages. For more information on the Open Graph Protocol, see http://ogp.me/.

This repository is currently work in progress, and APIs may change without notice.

Compatability

  • Python 2.7
  • Python 3.3, 3.4, 3.5, 3.6
  • PyPy

Other versions may work, but testing is only done against the above versions.

Dependencies

  • Beautiful Soup 4
  • Requests

Installation

pip install ogpy

Example loading from URL

from opengraph import OpenGraph

og = OpenGraph(url='http://someurl.com')
og.title  # would yield the 'title' open graph element

About

Python module to parse Open Graph metadata on web pages

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 97.7%
  • Shell 2.3%