Parse URL like could do Facebook Debugger
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
web_rich_object
.coveragerc
.gitignore
.travis.yml
MANIFEST.in
README.rst
requirements-tests.txt
requirements.txt
setup.py
tox.ini

README.rst

Web Rich Object

This module aims to describe a URL as a Web Rich Object.

It firstly uses OpenGraph protocol and try to guess without.

>>> from web_rich_object import WebRichObject
>>> wro = WebRichObject('https://www.youtube.com/watch?v=4nzaATIOAAE')
>>> wro.title
'Sir Samuel - Urban Classik [CLIP OFFICIEL]'
>>> wro.site_name
'YouTube'
>>> wro.image
'https://i.ytimg.com/vi/4nzaATIOAAE/maxresdefault.jpg'
>>> wro.url
'https://www.youtube.com/watch?v=4nzaATIOAAE'