Skip to content

umbrae/embedly-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

embedly-python

Python Library for interacting with Embedly's API. To get started sign up for a key at embed.ly/pricing.

Install

Install with Pip (recommended):

pip install -e git://github.com/embedly/embedly-python.git#egg=Embedly

Or setuptools:

git clone git://github.com/embedly/embedly-python.git
sudo python setup.py

Getting Started

Basic usage:

>>> from embedly import Embedly
>>> client = Embedly(:key)
>>> obj = client.oembed('http://instagr.am/p/BL7ti/')
>>> obj.type
u'photo'
>>> obj['type']
u['photo']
>>> obj.url
u'http://distillery.s3.amazonaws.com/media/2011/01/24/cdd759a319184cb79793506607ff5746_7.jpg'

>>> obj = client.oembed('http://instagr.am/p/error')
>>> obj.error
True

Copyright

Copyright (c) 2011 Embed.ly, Inc. See LICENSE for details.

About

Python lib for Embedly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%